diff options
author | Maxim Devaev <[email protected]> | 2022-07-24 05:49:14 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2022-07-24 05:49:14 +0300 |
commit | 88b2e90438c861ead6f131b5987eb4348f004ec6 (patch) | |
tree | 4a032ba09803dc2ebaa2d96f0aa142f3db5c80a8 /web | |
parent | 0e3ebac3627fe5039957d2d48d68d8620ff9384f (diff) |
rw warning
Diffstat (limited to 'web')
-rw-r--r-- | web/kvm/index.html | 14 | ||||
-rw-r--r-- | web/kvm/navbar-msd.pug | 4 | ||||
-rw-r--r-- | web/share/js/kvm/msd.js | 2 |
3 files changed, 20 insertions, 0 deletions
diff --git a/web/kvm/index.html b/web/kvm/index.html index ebcc824a..230ed946 100644 --- a/web/kvm/index.html +++ b/web/kvm/index.html @@ -399,6 +399,20 @@ </div> <hr> </div> + <div class="hidden" id="msd-message-rw-enabled"> + <div class="text"> + <table> + <tr> + <td rowspan="2"><img class="sign " src="/share/svg/warning.svg"></td> + <td style="line-height:1.5"><b>Read-write mode is enabled</b></td> + </tr> + <tr> + <td><sup style="line-height:1">Do not turn off PiKVM during this to prevent filesystem corruption</sup></td> + </tr> + </table> + </div> + <hr> + </div> <table class="kv msd-single-storage feature-disabled"> <tr> <td>Current image:</td> diff --git a/web/kvm/navbar-msd.pug b/web/kvm/navbar-msd.pug index ae2e063e..2ba68520 100644 --- a/web/kvm/navbar-msd.pug +++ b/web/kvm/navbar-msd.pug @@ -23,6 +23,10 @@ li(id="msd-dropdown" class="right feature-disabled") +menu_message("warning", "Current image is out of storage") | This image was connected manually using #[b kvmd-otgmsd] hr + div(id="msd-message-rw-enabled" class="hidden") + +menu_message("warning", "Read-write mode is enabled") + | Do not turn off PiKVM during this to prevent filesystem corruption + hr table(class="kv msd-single-storage feature-disabled") tr td Current image: diff --git a/web/share/js/kvm/msd.js b/web/share/js/kvm/msd.js index 4e85239f..3e0fb9ae 100644 --- a/web/share/js/kvm/msd.js +++ b/web/share/js/kvm/msd.js @@ -318,6 +318,8 @@ export function Msd() { (online && s.features.cdrom && s.drive.cdrom && s.drive.image && s.drive.image.size >= 2359296000)); tools.hidden.setVisible($("msd-message-out-of-storage"), (online && s.features.multi && s.drive.image && !s.drive.image.in_storage)); + tools.hidden.setVisible($("msd-message-rw-enabled"), + (online && s.features.rw && s.drive.rw)); tools.hidden.setVisible($("msd-message-another-user-uploads"), (online && s.storage.uploading && !__http)); }; |