feat(Service): Add functionality to convert between applications and databases in docker-compose based applications

fix(ui): Fix service layout refresh on compose change
This commit is contained in:
Andras Bacsai
2025-04-29 14:27:17 +02:00
parent 1f7f267d60
commit d8c3418e72
8 changed files with 88 additions and 14 deletions

View File

@@ -31,8 +31,9 @@ class Configuration extends Component
return [
"echo-private:user.{$userId},ServiceStatusChanged" => 'check_status',
'check_status',
'refreshStatus' => '$refresh',
'check_status',
'refreshServices',
];
}
@@ -63,6 +64,13 @@ class Configuration extends Component
$this->databases = $this->service->databases->sort();
}
public function refreshServices()
{
$this->service->refresh();
$this->applications = $this->service->applications->sort();
$this->databases = $this->service->databases->sort();
}
public function restartApplication($id)
{
try {