refactor: application status changed realtime

This commit is contained in:
Andras Bacsai committed 2023-12-11 13:43:16 +01:00
1 parent a8807b8d09
commit 1fd12832ca
9 files changed
+70 -6

No files matched your search

+3 -1
View File
@@ -41,9 +41,11 @@ class Navbar extends Component
{
return view('livewire.project.service.navbar');
}
public function checkStatus()
public function check_status($showNotification = false)
{
dispatch_sync(new ContainerStatusJob($this->service->destination->server));
$this->service->refresh();
if ($showNotification) $this->dispatch('success', 'Service status updated.');
}
public function deploy()
{