File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
resources/themes/pterodactyl/admin/servers/view Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 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- <form action =" {{ route (' admin.servers.view.manage.reinstall' , $server -> id ) } }" method =" POST" >
66- {!! csrf_field () ! !}
67- <button type =" submit" class =" btn btn-danger" >Reinstall Server</button >
68- </form >
65+ @if ($server -> installed )
66+ <form action =" {{ route (' admin.servers.view.manage.reinstall' , $server -> id ) } }" method =" POST" >
67+ {!! csrf_field () ! !}
68+ <button type =" submit" class =" btn btn-danger" >Reinstall Server</button >
69+ </form >
70+ @else
71+ <button class =" btn btn-danger disabled" >Reinstall Server</button >
72+ @endif
6973 </div >
7074 </div >
7175 </div >
You can’t perform that action at this time.
0 commit comments