fix: 🐛 Disable cancel button when cancelled

This commit is contained in:
IceToast 2022-07-22 05:12:06 +02:00 committed by IceToast
parent e4165181fe
commit 3f4cae352a
No known key found for this signature in database
GPG key ID: 1464353E063A5B97

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>