mirror of
https://github.com/pelican-dev/panel.git
synced 2025-08-03 00:12:19 +02:00
Fix delayed status update, and graphs (#1536)
This commit is contained in:
parent
986063dce4
commit
38e746240d
@ -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 = [];
|
||||
|
Loading…
x
Reference in New Issue
Block a user