fix(sentinel): refresh server nav after toggles

Dispatch server show refreshes after Sentinel and metrics toggles, preserve editable Sentinel form fields during restart events, and gate custom image editing by update permission.
This commit is contained in:
Andras Bacsai committed 2026-06-03 11:10:13 +02:00
1 parent 2d2634f87b
commit d892d0ad10
7 files changed
+43 -19

No files matched your search

+3 -2
View File
@@ -104,7 +104,7 @@ class Sentinel extends Component
}
}
public function toggleSentinel()
public function toggleSentinel(): void
{
try {
$this->authorize('manageSentinel', $this->server);
@@ -124,8 +124,9 @@ class Sentinel extends Component
StopSentinel::dispatch($this->server);
}
$this->submit();
$this->dispatch('refreshServerShow');
} catch (\Throwable $e) {
return handleError($e, $this);
handleError($e, $this);
}
}