fix(service): ensure configuration changes are properly tracked and dispatched

This commit is contained in:
Andras Bacsai
2025-07-03 15:08:13 +02:00
parent b181e5bb33
commit 13a9816770
3 changed files with 3 additions and 1 deletions

View File

@@ -63,7 +63,7 @@ class Heading extends Component
$this->service->databases->each(function ($database) {
$database->refresh();
});
if (is_null($this->service->config_hash) || $this->service->isConfigurationChanged()) {
if (is_null($this->service->config_hash)) {
$this->service->isConfigurationChanged(true);
}
$this->dispatch('configurationChanged');

View File

@@ -170,6 +170,7 @@ class Show extends Component
$this->syncData(true);
$this->dispatch('success', 'Environment variable updated.');
$this->dispatch('envsUpdated');
$this->dispatch('configurationChanged');
} catch (\Exception $e) {
return handleError($e);
}