fix(core): update service status refresh event handling
This commit is contained in:
@@ -32,7 +32,7 @@ class Configuration extends Component
|
|||||||
return [
|
return [
|
||||||
"echo-private:user.{$userId},ServiceStatusChanged" => 'check_status',
|
"echo-private:user.{$userId},ServiceStatusChanged" => 'check_status',
|
||||||
'check_status',
|
'check_status',
|
||||||
'refresh' => '$refresh',
|
'refreshStatus' => '$refresh',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -99,7 +99,7 @@ class Configuration extends Component
|
|||||||
$this->service->databases->each(function ($database) {
|
$this->service->databases->each(function ($database) {
|
||||||
$database->refresh();
|
$database->refresh();
|
||||||
});
|
});
|
||||||
$this->dispatch('refresh');
|
$this->dispatch('refreshStatus');
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
return handleError($e, $this);
|
return handleError($e, $this);
|
||||||
}
|
}
|
||||||
|
@@ -40,6 +40,7 @@ class Navbar extends Component
|
|||||||
return [
|
return [
|
||||||
"echo-private:user.{$userId},ServiceStatusChanged" => 'serviceStarted',
|
"echo-private:user.{$userId},ServiceStatusChanged" => 'serviceStarted',
|
||||||
'envsUpdated' => '$refresh',
|
'envsUpdated' => '$refresh',
|
||||||
|
'refreshStatus' => '$refresh',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user