fix: domain update on services on the UI

This commit is contained in:
Andras Bacsai
2024-07-26 11:58:14 +02:00
parent 2c0b40ac8c
commit 802cab4a70
2 changed files with 9 additions and 1 deletions

View File

@@ -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') {