fix: 🐛 Fiy suspended typo & localization

This commit is contained in:
IceToast 2022-07-22 04:40:03 +02:00 committed by IceToast
parent 8a4273a8fb
commit 54e14d5f2b
No known key found for this signature in database
GPG key ID: 1464353E063A5B97
3 changed files with 4 additions and 1 deletions

View file

@ -466,6 +466,7 @@
"weekly": "Wöchentlich", "weekly": "Wöchentlich",
"half-annually": "Halbjährlich", "half-annually": "Halbjährlich",
"annually": "Jährlich", "annually": "Jährlich",
"Suspended": "Gesperrt",
"Cancelled": "Gekündigt", "Cancelled": "Gekündigt",
"An exception has occurred while trying to cancel the server": "Ein Fehler ist aufgetreten beim Versuch, den Server zu kündigen", "An exception has occurred while trying to cancel the server": "Ein Fehler ist aufgetreten beim Versuch, den Server zu kündigen",
"This will cancel your current server to the next billing period. It will get suspended when the current period runs out.": "Dies wird Ihren aktuellen Server zur nächsten Abrechnungsperiode kündigen. Er wird beim Ablauf der aktuellen Periode gesperrt.", "This will cancel your current server to the next billing period. It will get suspended when the current period runs out.": "Dies wird Ihren aktuellen Server zur nächsten Abrechnungsperiode kündigen. Er wird beim Ablauf der aktuellen Periode gesperrt.",

View file

@ -449,6 +449,7 @@
"weekly": "Weekly", "weekly": "Weekly",
"half-annually": "Half-annually", "half-annually": "Half-annually",
"annually": "Annually", "annually": "Annually",
"Suspended": "Suspended",
"Cancelled": "Cancelled", "Cancelled": "Cancelled",
"An exception has occurred while trying to cancel the server": "An exception has occurred while trying to cancel the server", "An exception has occurred while trying to cancel the server": "An exception has occurred while trying to cancel the server",
"This will cancel your current server to the next billing period. It will get suspended when the current period runs out.": "This will cancel your current server to the next billing period. It will get suspended when the current period runs out.", "This will cancel your current server to the next billing period. It will get suspended when the current period runs out.": "This will cancel your current server to the next billing period. It will get suspended when the current period runs out.",

View file

@ -72,7 +72,7 @@
<div class="row mb-3"> <div class="row mb-3">
<div class="col my-auto">{{ __('Status') }}:</div> <div class="col my-auto">{{ __('Status') }}:</div>
<div class="col-7 my-auto"> <div class="col-7 my-auto">
@if($server->suspennded) @if($server->suspended)
<span class="badge badge-danger">{{ __('Suspended') }}</span> <span class="badge badge-danger">{{ __('Suspended') }}</span>
@elseif($server->cancelled) @elseif($server->cancelled)
<span class="badge badge-warning">{{ __('Cancelled') }}</span> <span class="badge badge-warning">{{ __('Cancelled') }}</span>
@ -199,6 +199,7 @@
</a> </a>
<button onclick="handleServerCancel('{{ $server->id }}');" target="__blank" <button onclick="handleServerCancel('{{ $server->id }}');" target="__blank"
class="btn btn-warning text-center" class="btn btn-warning text-center"
disabled="{{ $server->suspended }}"
data-toggle="tooltip" data-placement="bottom" title="{{ __('Cancel Server') }}"> data-toggle="tooltip" data-placement="bottom" title="{{ __('Cancel Server') }}">
<i class="fas fa-ban mx-4"></i> <i class="fas fa-ban mx-4"></i>
</button> </button>