summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/kvm/index.html9
-rw-r--r--web/kvm/navbar-system.pug9
-rw-r--r--web/share/js/kvm/gpio.js1
3 files changed, 19 insertions, 0 deletions
diff --git a/web/kvm/index.html b/web/kvm/index.html
index 55ccad0b..3d852763 100644
--- a/web/kvm/index.html
+++ b/web/kvm/index.html
@@ -325,6 +325,15 @@
</div>
</td>
</tr>
+ <tr class="feature-disabled" id="v4-locator">
+ <td>Enable locator LED:</td>
+ <td align="right">
+ <div class="switch-box">
+ <input class="gpio-switch" disabled type="checkbox" id="gpio-switch-__v4_locator__" data-channel="__v4_locator__">
+ <label for="gpio-switch-__v4_locator__"><span class="switch-inner"></span><span class="switch"></span></label>
+ </div>
+ </td>
+ </tr>
<tr>
<td>Ask page close confirmation:</td>
<td align="right">
diff --git a/web/kvm/navbar-system.pug b/web/kvm/navbar-system.pug
index c3367696..ea8cd6b8 100644
--- a/web/kvm/navbar-system.pug
+++ b/web/kvm/navbar-system.pug
@@ -100,6 +100,15 @@ li(id="system-dropdown" class="right")
label(for="gpio-switch-__v3_usb_breaker__")
span(class="switch-inner")
span(class="switch")
+ tr(id="v4-locator" class="feature-disabled")
+ td Enable locator LED:
+ td(align="right")
+ div(class="switch-box")
+ input(disabled type="checkbox" id="gpio-switch-__v4_locator__" class="gpio-switch"
+ data-channel="__v4_locator__")
+ label(for="gpio-switch-__v4_locator__")
+ span(class="switch-inner")
+ span(class="switch")
tr
+menu_switch_notable("page-close-ask-switch", "Ask page close confirmation", true, true)
hr
diff --git a/web/share/js/kvm/gpio.js b/web/share/js/kvm/gpio.js
index 08ec42a8..cf319c95 100644
--- a/web/share/js/kvm/gpio.js
+++ b/web/share/js/kvm/gpio.js
@@ -114,6 +114,7 @@ export function Gpio(__recorder) {
}
tools.feature.setEnabled($("v3-usb-breaker"), ("__v3_usb_breaker__" in model.scheme.outputs));
+ tools.feature.setEnabled($("v4-locator"), ("__v4_locator__" in model.scheme.outputs));
tools.feature.setEnabled($("system-tool-wol"), ("__wol__" in model.scheme.outputs));
self.setState(__state);