From a3255f3ab0e525402295a0b4460127587eef5b9d Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Sat, 22 Jun 2024 13:33:22 +0200 Subject: [PATCH] fix: refresh deployable compose without reload --- app/Livewire/Project/Service/EditCompose.php | 2 ++ app/Livewire/Project/Service/StackForm.php | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Livewire/Project/Service/EditCompose.php b/app/Livewire/Project/Service/EditCompose.php index fd4d684b1..c9bdf12fc 100644 --- a/app/Livewire/Project/Service/EditCompose.php +++ b/app/Livewire/Project/Service/EditCompose.php @@ -11,6 +11,8 @@ class EditCompose extends Component public $serviceId; + protected $listeners = ['refreshEnvs' => 'mount']; + protected $rules = [ 'service.docker_compose_raw' => 'required', 'service.docker_compose' => 'required', diff --git a/app/Livewire/Project/Service/StackForm.php b/app/Livewire/Project/Service/StackForm.php index 05917f895..a1b613a43 100644 --- a/app/Livewire/Project/Service/StackForm.php +++ b/app/Livewire/Project/Service/StackForm.php @@ -75,7 +75,6 @@ public function submit() $this->service->parse(); $this->service->refresh(); $this->service->saveComposeConfigs(); - $this->dispatch('refreshStacks'); $this->dispatch('refreshEnvs'); $this->dispatch('success', 'Service saved.'); } catch (\Throwable $e) {