mirror of
https://github.com/mat-1/matdoesdev.git
synced 2025-08-02 06:36:04 +00:00
handle noscript and failing to connect correctly in admin page
This commit is contained in:
parent
eb1a735ddc
commit
5295e1b627
1 changed files with 18 additions and 1 deletions
|
@ -96,7 +96,24 @@
|
|||
|
||||
<h1>Admin</h1>
|
||||
|
||||
<div>
|
||||
<noscript>
|
||||
<p>JavaScript is required to view this page.</p>
|
||||
<style>
|
||||
.admin {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
</noscript>
|
||||
|
||||
{#if uptimeSeconds === undefined}
|
||||
<p>Loading...</p>
|
||||
<style>
|
||||
.admin {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
{/if}
|
||||
<div class="admin">
|
||||
<section class="container danger-buttons">
|
||||
<button class="danger-button" onclick={reboot}>Reboot</button>
|
||||
<button class="danger-button" onclick={shutdown}>Shut down</button>
|
||||
|
|
Loading…
Add table
Reference in a new issue