diff --git a/app/Livewire/Project/Shared/EnvironmentVariable/Show.php b/app/Livewire/Project/Shared/EnvironmentVariable/Show.php index c21d899e5..d78b47363 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') {