From deece51e83b3afb3a51e88e9bd401747c6c5c511 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 18 Sep 2023 12:38:11 +0200 Subject: [PATCH] fix: stop/start UI on apps and dbs --- app/Http/Livewire/Project/Application/Heading.php | 3 ++- app/Http/Livewire/Project/Database/Heading.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Http/Livewire/Project/Application/Heading.php b/app/Http/Livewire/Project/Application/Heading.php index 8c0da7a1e..6bf72e1d0 100644 --- a/app/Http/Livewire/Project/Application/Heading.php +++ b/app/Http/Livewire/Project/Application/Heading.php @@ -68,10 +68,11 @@ class Heading extends Component ["docker rm -f {$containerName}"], $this->application->destination->server ); - $this->application->status = 'stopped'; + $this->application->status = 'exited'; $this->application->save(); // $this->application->environment->project->team->notify(new StatusChanged($this->application)); } } + $this->application->refresh(); } } diff --git a/app/Http/Livewire/Project/Database/Heading.php b/app/Http/Livewire/Project/Database/Heading.php index 60144073e..3389ac80a 100644 --- a/app/Http/Livewire/Project/Database/Heading.php +++ b/app/Http/Livewire/Project/Database/Heading.php @@ -43,7 +43,7 @@ class Heading extends Component stopPostgresProxy($this->database); $this->database->is_public = false; } - $this->database->status = 'stopped'; + $this->database->status = 'exited'; $this->database->save(); $this->check_status(); // $this->database->environment->project->team->notify(new StatusChanged($this->database));