summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2023-10-26 08:28:18 +0300
committerMaxim Devaev <[email protected]>2023-10-26 08:28:18 +0300
commit7bb553110068fa0ae5a5ed230d58322ded385ade (patch)
tree810c056d9b03aea5b0c3929546b7b4486558297e /web
parentaec67270205ac9d149c0c71a1891f4942eba477b (diff)
option to disable jiggler
Diffstat (limited to 'web')
-rw-r--r--web/kvm/index.html2
-rw-r--r--web/kvm/navbar-system.pug2
-rw-r--r--web/share/js/kvm/hid.js3
3 files changed, 4 insertions, 3 deletions
diff --git a/web/kvm/index.html b/web/kvm/index.html
index 33533dc1..9338e756 100644
--- a/web/kvm/index.html
+++ b/web/kvm/index.html
@@ -350,7 +350,7 @@
</div>
</td>
</tr>
- <tr>
+ <tr class="feature-disabled" id="hid-jiggler">
<td>Mouse jiggler:</td>
<td align="right">
<div class="switch-box">
diff --git a/web/kvm/navbar-system.pug b/web/kvm/navbar-system.pug
index f41e0abb..d1016d42 100644
--- a/web/kvm/navbar-system.pug
+++ b/web/kvm/navbar-system.pug
@@ -103,7 +103,7 @@ li(id="system-dropdown" class="right")
table(class="kv")
tr(id="hid-connect" class="feature-disabled")
+menu_switch_notable("hid-connect-switch", "Connect HID to Server", true, true)
- tr
+ tr(id="hid-jiggler" class="feature-disabled")
+menu_switch_notable("hid-jiggler-switch", "Mouse jiggler", false, false)
tr
+menu_switch_notable("hid-mute-switch", "Mute HID input events", true, false)
diff --git a/web/share/js/kvm/hid.js b/web/share/js/kvm/hid.js
index 6d9d8597..c097c81d 100644
--- a/web/share/js/kvm/hid.js
+++ b/web/share/js/kvm/hid.js
@@ -133,7 +133,8 @@ export function Hid(__getGeometry, __recorder) {
let has_relative_squash = false;
if (state) {
- $("hid-jiggler-switch").checked = !!state.jiggler.enabled;
+ tools.feature.setEnabled($("hid-jiggler"), state.jiggler.enabled);
+ $("hid-jiggler-switch").checked = state.jiggler.active;
}
if (state && state.online) {
let keyboard_outputs = state.keyboard.outputs.available;