فهرست منبع

fix: 🐛 Fiy suspended typo & localization

IceToast 2 سال پیش
والد
کامیت
abd8bc6b9c
3فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. 1 0
      resources/lang/de.json
  2. 1 0
      resources/lang/en.json
  3. 2 1
      resources/views/servers/index.blade.php

+ 1 - 0
resources/lang/de.json

@@ -450,6 +450,7 @@
     "weekly": "Wöchentlich",
     "half-annually": "Halbjährlich",
     "annually": "Jährlich",
+    "Suspended": "Gesperrt",
     "Cancelled": "Gekündigt",
     "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.",

+ 1 - 0
resources/lang/en.json

@@ -452,6 +452,7 @@
     "weekly": "Weekly",
     "half-annually": "Half-annually",
     "annually": "Annually",
+    "Suspended": "Suspended",
     "Cancelled": "Cancelled",
     "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.",

+ 2 - 1
resources/views/servers/index.blade.php

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