fix(core): add server functionality check before dispatching container status

This commit is contained in:
Andras Bacsai
2025-02-22 12:51:22 +01:00
parent 09133d7d46
commit 40ad118492
2 changed files with 7 additions and 3 deletions

View File

@@ -43,8 +43,10 @@ class Heading extends Component
public function check_status($showNotification = false)
{
GetContainersStatus::run($this->database->destination->server);
$this->database->refresh();
if ($this->database->destination->server->isFunctional()) {
GetContainersStatus::dispatch($this->database->destination->server);
}
if ($showNotification) {
$this->dispatch('success', 'Database status updated.');
}