fix: 🐛 Do not show upgrade/downgrade button when key is not set
This commit is contained in:
parent
7439d2470e
commit
4fa866b967
|
@ -226,11 +226,14 @@
|
||||||
data-content="{{ __('To enable the upgrade/downgrade system, please set your Ptero Admin-User API Key in the Settings!') }}"
|
data-content="{{ __('To enable the upgrade/downgrade system, please set your Ptero Admin-User API Key in the Settings!') }}"
|
||||||
class="fas fa-info-circle"></i>
|
class="fas fa-info-circle"></i>
|
||||||
@endif
|
@endif
|
||||||
<button type="button" data-toggle="modal" @if(!config("SETTINGS::SYSTEM:PTERODACTYL:ADMIN_USER_TOKEN")) disabled @endif data-target="#UpgradeModal{{ $server->id }}" target="__blank"
|
@if(config("SETTINGS::SYSTEM:PTERODACTYL:ADMIN_USER_TOKEN") || Auth::user()->role!="admin")
|
||||||
|
<button type="button" data-toggle="modal" data-target="#UpgradeModal{{ $server->id }}" target="__blank"
|
||||||
class="btn btn-info btn-md">
|
class="btn btn-info btn-md">
|
||||||
<i class="fas fa-upload mr-2"></i>
|
<i class="fas fa-upload mr-2"></i>
|
||||||
<span>{{ __('Upgrade / Downgrade') }}</span>
|
<span>{{ __('Upgrade / Downgrade') }}</span>
|
||||||
</button>
|
</button>
|
||||||
|
@endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Upgrade Modal -->
|
<!-- Upgrade Modal -->
|
||||||
|
|
Loading…
Reference in a new issue