Block reinstall button if server doesn't install correctly.

This commit is contained in:
Dane Everitt 2017-06-18 21:11:11 -05:00
parent dcab84b1da
commit 62a8f5737f
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53

View file

@ -62,13 +62,13 @@
<p>This will reinstall the server with the assigned pack and service scripts. <strong>Danger!</strong> This could overwrite server data.</p>
</div>
<div class="box-footer">
@if($server->installed)
@if($server->installed === 1)
<form action="{{ route('admin.servers.view.manage.reinstall', $server->id) }}" method="POST">
{!! csrf_field() !!}
<button type="submit" class="btn btn-danger">Reinstall Server</button>
</form>
@else
<button class="btn btn-danger disabled">Reinstall Server</button>
<button class="btn btn-danger disabled">Server Must Install Properly to Reinstall</button>
@endif
</div>
</div>