Block reinstall button if server doesn't install correctly.
This commit is contained in:
parent
dcab84b1da
commit
62a8f5737f
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue