diff --git a/app/Http/Livewire/Project/Service/Navbar.php b/app/Http/Livewire/Project/Service/Navbar.php index 23ad062a5..1953605e6 100644 --- a/app/Http/Livewire/Project/Service/Navbar.php +++ b/app/Http/Livewire/Project/Service/Navbar.php @@ -27,11 +27,15 @@ public function deploy() $activity = StartService::run($this->service); $this->emit('newMonitorActivity', $activity->id); } - public function stop() + public function stop(bool $forceCleanup = false) { StopService::run($this->service); $this->service->refresh(); - $this->emit('success', 'Service stopped successfully.'); + if ($forceCleanup) { + $this->emit('success', 'Force cleanup service successfully.'); + } else { + $this->emit('success', 'Service stopped successfully.'); + } $this->emit('checkStatus'); } } diff --git a/resources/views/components/services/navbar.blade.php b/resources/views/components/services/navbar.blade.php index 43e16c3df..1d0cf03a5 100644 --- a/resources/views/components/services/navbar.blade.php +++ b/resources/views/components/services/navbar.blade.php @@ -38,13 +38,13 @@ class="flex items-center gap-2 cursor-pointer hover:text-white text-neutral-400" @endif @if (serviceStatus($service) === 'exited') -