Skip to content

Commit 38d9140

Browse files
committed
fix: update env on ui
1 parent 102dd6b commit 38d9140

File tree

1 file changed

+7
-0
lines changed
  • app/Livewire/Project/Shared/EnvironmentVariable

1 file changed

+7
-0
lines changed

app/Livewire/Project/Shared/EnvironmentVariable/Show.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class Show extends Component
2424
public string $type;
2525

2626
protected $listeners = [
27+
'refresh' => 'refresh',
2728
'compose_loaded' => '$refresh',
2829
];
2930

@@ -46,6 +47,12 @@ class Show extends Component
4647
'env.is_shown_once' => 'Shown Once',
4748
];
4849

50+
public function refresh()
51+
{
52+
$this->env->refresh();
53+
$this->checkEnvs();
54+
}
55+
4956
public function mount()
5057
{
5158
if ($this->env->getMorphClass() === 'App\Models\SharedEnvironmentVariable') {

0 commit comments

Comments
 (0)