Fix delayed status update, and graphs (#1536)

This commit is contained in:
Charles 2025-07-19 14:45:50 -04:00 committed by GitHub
parent 986063dce4
commit 38e746240d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -141,8 +141,12 @@ class Console extends Page
#[On('console-status')]
public function receivedConsoleUpdate(?string $state = null): void
{
/** @var Server $server */
$server = Filament::getTenant();
if ($state) {
$this->status = ContainerStatus::from($state);
cache()->put("servers.$server->uuid.status", $this->status, now()->addSeconds(15));
}
$this->cachedHeaderActions = [];