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

+6 -8
View File
@@ -3,28 +3,26 @@
namespace App\Livewire\Server\Sentinel;
use App\Models\Server;
use Illuminate\View\View;
use Livewire\Component;
class Logs extends Component
{
public ?Server $server = null;
public $parameters = [];
public array $parameters = [];
public function mount()
public function mount(): void
{
$this->parameters = get_route_parameters();
try {
$this->server = Server::ownedByCurrentTeam()->whereUuid(request()->server_uuid)->first();
if (is_null($this->server)) {
return redirect()->route('server.index');
}
$this->server = Server::ownedByCurrentTeam()->whereUuid(request()->server_uuid)->firstOrFail();
} catch (\Throwable $e) {
return handleError($e, $this);
handleError($e, $this);
}
}
public function render()
public function render(): View
{
return view('livewire.server.sentinel.logs');
}