An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
Refactor database restart button in service configuration view
Andras Bacsaic102c238319d
diff --git a/resources/views/livewire/project/service/configuration.blade.php b/resources/views/livewire/project/service/configuration.blade.phpindex 185fbdb77e..7fdd2812e4 100644--- a/resources/views/livewire/project/service/configuration.blade.php+++ b/resources/views/livewire/project/service/configuration.blade.php@@ -151,11 +151,13 @@href="{{ route('project.service.index', [...$parameters, 'stack_service_uuid' => $database->uuid]) }}">Settings</a>- <x-modal-confirmation action="restartDatabase({{ $database->id }})" isErrorButton- buttonTitle="Restart">- This database will be unavailable during the restart. <br>Please think again.- </x-modal-confirmation>-+ @if (str($database->status)->contains('running'))+ <x-modal-confirmation action="restartDatabase({{ $database->id }})"+ isErrorButton buttonTitle="Restart">+ This database will be unavailable during the restart. <br>Please think+ again.+ </x-modal-confirmation>+ @endif</div></div></div>