Refactor database restart button in service configuration view

This commit is contained in:
Andras Bacsai 2024-05-22 19:09:58 +02:00
parent 80ada9c90a
commit c102c23831

View File

@ -151,11 +151,13 @@ class="w-4 h-4 dark:text-warning text-coollabs"
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.
@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>