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]) }}"> href="{{ route('project.service.index', [...$parameters, 'stack_service_uuid' => $database->uuid]) }}">
Settings Settings
</a> </a>
<x-modal-confirmation action="restartDatabase({{ $database->id }})" isErrorButton @if (str($database->status)->contains('running'))
buttonTitle="Restart"> <x-modal-confirmation action="restartDatabase({{ $database->id }})"
This database will be unavailable during the restart. <br>Please think again. isErrorButton buttonTitle="Restart">
</x-modal-confirmation> This database will be unavailable during the restart. <br>Please think
again.
</x-modal-confirmation>
@endif
</div> </div>
</div> </div>
</div> </div>