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
1 changed files with 2 additions and 2 deletions

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