fix: 🐛 Disable cancel button when cancelled

This commit is contained in:
IceToast 2022-07-22 05:12:06 +02:00
parent 4b27665150
commit 3e4a4f32fc

View file

@ -199,7 +199,7 @@
</a>
<button onclick="handleServerCancel('{{ $server->id }}');" target="__blank"
class="btn btn-warning text-center"
{{ $server->suspended? "disabled" : "" }}
{{ $server->suspended || $server->cancelled ? "disabled" : "" }}
data-toggle="tooltip" data-placement="bottom" title="{{ __('Cancel Server') }}">
<i class="fas fa-ban mx-4"></i>
</button>