Don't allow reinstall if server install failed
This commit is contained in:
parent
f0fca2a681
commit
0e48c94918
|
@ -62,10 +62,14 @@
|
||||||
<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">
|
||||||
<form action="{{ route('admin.servers.view.manage.reinstall', $server->id) }}" method="POST">
|
@if($server->installed)
|
||||||
{!! csrf_field() !!}
|
<form action="{{ route('admin.servers.view.manage.reinstall', $server->id) }}" method="POST">
|
||||||
<button type="submit" class="btn btn-danger">Reinstall Server</button>
|
{!! csrf_field() !!}
|
||||||
</form>
|
<button type="submit" class="btn btn-danger">Reinstall Server</button>
|
||||||
|
</form>
|
||||||
|
@else
|
||||||
|
<button class="btn btn-danger disabled">Reinstall Server</button>
|
||||||
|
@endif
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue