Skip to content

Commit 62a8f57

Browse files
committed
Block reinstall button if server doesn't install correctly.
1 parent dcab84b commit 62a8f57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/themes/pterodactyl/admin/servers/view/manage.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@
6262
<p>This will reinstall the server with the assigned pack and service scripts. <strong>Danger!</strong> This could overwrite server data.</p>
6363
</div>
6464
<div class="box-footer">
65-
@if($server->installed)
65+
@if($server->installed === 1)
6666
<form action="{{ route('admin.servers.view.manage.reinstall', $server->id) }}" method="POST">
6767
{!! csrf_field() !!}
6868
<button type="submit" class="btn btn-danger">Reinstall Server</button>
6969
</form>
7070
@else
71-
<button class="btn btn-danger disabled">Reinstall Server</button>
71+
<button class="btn btn-danger disabled">Server Must Install Properly to Reinstall</button>
7272
@endif
7373
</div>
7474
</div>

0 commit comments

Comments
 (0)