hmm
This commit is contained in:
parent
14bac0f0d7
commit
4071e096bc
@ -38,7 +38,6 @@ public function checkStatus()
|
||||
{
|
||||
dispatch_sync(new ContainerStatusJob($this->service->server));
|
||||
$this->refreshStacks();
|
||||
$this->dispatch('updateStatus');
|
||||
}
|
||||
public function refreshStacks()
|
||||
{
|
||||
|
@ -16,8 +16,7 @@ class Navbar extends Component
|
||||
public array $query;
|
||||
public $isDeploymentProgress = false;
|
||||
|
||||
public function checkDeployments()
|
||||
{
|
||||
public function checkDeployments() {
|
||||
$activity = Activity::where('properties->type_uuid', $this->service->uuid)->latest()->first();
|
||||
$status = data_get($activity, 'properties.status');
|
||||
if ($status === 'queued' || $status === 'in_progress') {
|
||||
@ -28,10 +27,15 @@ public function checkDeployments()
|
||||
}
|
||||
public function getListeners()
|
||||
{
|
||||
$userId = auth()->user()->id;
|
||||
return [
|
||||
"updateStatus" => 'checkStatus',
|
||||
"echo-private:custom.{$userId},ServiceStatusChanged" => 'serviceStatusChanged',
|
||||
];
|
||||
}
|
||||
public function serviceStatusChanged()
|
||||
{
|
||||
$this->service->refresh();
|
||||
}
|
||||
public function render()
|
||||
{
|
||||
return view('livewire.project.service.navbar');
|
||||
|
Loading…
Reference in New Issue
Block a user