mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-18 00:15:00 +00:00
refactor: application status changed realtime
This commit is contained in:
1 parent
a8807b8d09
commit
1fd12832ca
9 files changed
+70
-6
No files matched your search
@@ -34,10 +34,11 @@ class Heading extends Component
|
||||
$this->check_status();
|
||||
}
|
||||
|
||||
public function check_status()
|
||||
public function check_status($showNotification = false)
|
||||
{
|
||||
dispatch_sync(new ContainerStatusJob($this->database->destination->server));
|
||||
$this->database->refresh();
|
||||
if ($showNotification) $this->dispatch('success', 'Database status updated.');
|
||||
}
|
||||
|
||||
public function mount()
|
||||
|
||||
Reference in new issue
Block a user