From 4904b33a0f09cea8c3fba7bc9ed69d4436a5fe26 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 12 Aug 2024 11:35:26 +0200 Subject: [PATCH] refactor: Update event listeners in Show components --- app/Livewire/Project/Shared/EnvironmentVariable/Show.php | 3 ++- app/Livewire/SharedVariables/Environment/Show.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Livewire/Project/Shared/EnvironmentVariable/Show.php b/app/Livewire/Project/Shared/EnvironmentVariable/Show.php index e63871602..342259fd1 100644 --- a/app/Livewire/Project/Shared/EnvironmentVariable/Show.php +++ b/app/Livewire/Project/Shared/EnvironmentVariable/Show.php @@ -24,7 +24,8 @@ class Show extends Component public string $type; protected $listeners = [ - 'refresh' => 'refresh', + 'refreshEnvs' => 'refresh', + 'refresh', 'compose_loaded' => '$refresh', ]; diff --git a/app/Livewire/SharedVariables/Environment/Show.php b/app/Livewire/SharedVariables/Environment/Show.php index e025d8f7c..daf1df212 100644 --- a/app/Livewire/SharedVariables/Environment/Show.php +++ b/app/Livewire/SharedVariables/Environment/Show.php @@ -16,7 +16,7 @@ class Show extends Component public array $parameters; - protected $listeners = ['refreshEnvs' => '$refresh', 'saveKey' => 'saveKey']; + protected $listeners = ['refreshEnvs' => '$refresh', 'saveKey']; public function saveKey($data) {