summaryrefslogtreecommitdiff
path: root/web/kvm/navbar-shortcuts.pug
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-05-24 15:07:31 +0300
committerMaxim Devaev <[email protected]>2022-05-24 15:07:31 +0300
commitdab806eaecf2be1d4ba4efbfa161f8a02de73307 (patch)
treebe4fad0765e94e0197641272993e2385acae3b05 /web/kvm/navbar-shortcuts.pug
parent1c730a4dcfda4ebd8f2e56f7dbabd7e92c28ba72 (diff)
pikvm/pikvm#725: sysrq confirmation
Diffstat (limited to 'web/kvm/navbar-shortcuts.pug')
-rw-r--r--web/kvm/navbar-shortcuts.pug6
1 files changed, 4 insertions, 2 deletions
diff --git a/web/kvm/navbar-shortcuts.pug b/web/kvm/navbar-shortcuts.pug
index 0b56d611..b3463d63 100644
--- a/web/kvm/navbar-shortcuts.pug
+++ b/web/kvm/navbar-shortcuts.pug
@@ -42,7 +42,7 @@ li(class="right")
"T": "Dump a list of current tasks and their information to the console",
}
each title, key in sysrq
- button(data-shortcut=`AltLeft PrintScreen Key${key}` class="row25" title=`${title}`) #{key}
+ button(data-shortcut=`AltLeft PrintScreen Key${key}` data-shortcut-confirm="hid-sysrq-ask-switch" class="row25" style="text-align: center;" title=`${title}`) #{key}
hr
div(class="buttons-row")
-
@@ -55,4 +55,6 @@ li(class="right")
"B": "Immediately reboot the system without syncing or unmounting disks",
}
each title, key in sysrq
- button(data-shortcut=`AltLeft PrintScreen Key${key}` class="row16" title=`${title}`) #{key}
+ button(data-shortcut=`AltLeft PrintScreen Key${key}` data-shortcut-confirm="hid-sysrq-ask-switch" class="row16" style="text-align: center;" title=`${title}`) #{key}
+ hr
+ +menu_switch("hid-sysrq-ask-switch", "Ask the magic confirmation", true, true)