From db8f0de8a3c724e981ee7a64ed5f4d3528a48514 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Fri, 24 Jan 2025 11:14:55 +0100 Subject: [PATCH] fix(ui): update database control UI to check server functionality before displaying actions --- .../project/database/heading.blade.php | 137 +++++++++--------- 1 file changed, 72 insertions(+), 65 deletions(-) diff --git a/resources/views/livewire/project/database/heading.blade.php b/resources/views/livewire/project/database/heading.blade.php index 84cc4d065..9d34f7dcf 100644 --- a/resources/views/livewire/project/database/heading.blade.php +++ b/resources/views/livewire/project/database/heading.blade.php @@ -34,72 +34,79 @@ @endif -
- @if (!str($database->status)->startsWith('exited')) - - - - - - - - - Restart - - - - - destination->server->isFunctional()) +
+ @if (!str($database->status)->startsWith('exited')) + + + + + + + + + Restart + + + + + + + + + + + + Stop + + + @else + - @endif - @script - - @endscript -
+ Start + + @endif + @script + + @endscript +
+ @else +
Underlying server is not functional.
+ @endif