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

This commit is contained in:
Andras Bacsai
2025-08-25 20:27:54 +02:00
parent be47884ee0
commit 83f2e856ec
4 changed files with 58 additions and 15 deletions

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);
}
}