feat(sentinel): implement SentinelRestarted event and update Livewire components to handle server restart notifications

This commit is contained in:
Andras Bacsai committed 2025-08-26 10:27:38 +02:00
1 parent be47884ee0
commit 83f2e856ec
4 files changed
+58 -15

No files matched your search

+4
View File
@@ -2,6 +2,7 @@
namespace App\Actions\Server;
use App\Events\SentinelRestarted;
use App\Models\Server;
use Lorisleiva\Actions\Concerns\AsAction;
@@ -61,5 +62,8 @@ class StartSentinel
$server->settings->is_sentinel_enabled = true;
$server->settings->save();
$server->sentinelHeartbeat();
// Dispatch event to notify UI components
SentinelRestarted::dispatch($server, $version);
}
}