mirror of
https://github.com/coollabsio/coolify.git
synced 2026-06-13 19:09:50 +00:00
d892d0ad10
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.
30 lines
629 B
PHP
30 lines
629 B
PHP
<?php
|
|
|
|
namespace App\Livewire\Server\Sentinel;
|
|
|
|
use App\Models\Server;
|
|
use Illuminate\View\View;
|
|
use Livewire\Component;
|
|
|
|
class Show extends Component
|
|
{
|
|
public ?Server $server = null;
|
|
|
|
public array $parameters = [];
|
|
|
|
public function mount(): void
|
|
{
|
|
$this->parameters = get_route_parameters();
|
|
try {
|
|
$this->server = Server::ownedByCurrentTeam()->whereUuid(request()->server_uuid)->firstOrFail();
|
|
} catch (\Throwable $e) {
|
|
handleError($e, $this);
|
|
}
|
|
}
|
|
|
|
public function render(): View
|
|
{
|
|
return view('livewire.server.sentinel.show');
|
|
}
|
|
}
|