From 802cab4a70e86b1c4bfa5dbef1c3ae8632da1653 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Fri, 26 Jul 2024 11:58:14 +0200 Subject: [PATCH] fix: domain update on services on the UI --- app/Livewire/Project/Shared/EnvironmentVariable/Show.php | 7 +++++++ .../views/livewire/project/service/edit-domain.blade.php | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/app/Livewire/Project/Shared/EnvironmentVariable/Show.php b/app/Livewire/Project/Shared/EnvironmentVariable/Show.php index 8c8c1be7b..b291bfcfe 100644 --- a/app/Livewire/Project/Shared/EnvironmentVariable/Show.php +++ b/app/Livewire/Project/Shared/EnvironmentVariable/Show.php @@ -24,6 +24,7 @@ class Show extends Component public string $type; protected $listeners = [ + 'refresh' => 'refresh', 'compose_loaded' => '$refresh', ]; @@ -46,6 +47,12 @@ class Show extends Component 'env.is_shown_once' => 'Shown Once', ]; + public function refresh() + { + $this->env->refresh(); + $this->checkEnvs(); + } + public function mount() { if ($this->env->getMorphClass() === 'App\Models\SharedEnvironmentVariable') { diff --git a/resources/views/livewire/project/service/edit-domain.blade.php b/resources/views/livewire/project/service/edit-domain.blade.php index 214b729fb..5528834eb 100644 --- a/resources/views/livewire/project/service/edit-domain.blade.php +++ b/resources/views/livewire/project/service/edit-domain.blade.php @@ -1,5 +1,6 @@
-
Note: If a service has a defined port, do not delete it.
If you want to use your custom domain, you can add it with a port.
+
Note: If a service has a defined port, do not delete it.
If you want to use your custom + domain, you can add it with a port.
Save