summaryrefslogtreecommitdiff
path: root/web/share/js/kvm/gpio.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/share/js/kvm/gpio.js')
-rw-r--r--web/share/js/kvm/gpio.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/web/share/js/kvm/gpio.js b/web/share/js/kvm/gpio.js
index db259cee..4bee901a 100644
--- a/web/share/js/kvm/gpio.js
+++ b/web/share/js/kvm/gpio.js
@@ -150,7 +150,10 @@ export function Gpio(__recorder) {
if (item.scheme.pulse.delay) {
controls.push(`
<td><button disabled id="gpio-button-${item.channel}" class="gpio-button"
- data-channel="${item.channel}" data-confirm="${confirm}">${item.text}</button></td>
+ ${item.hide ? "data-force-hide-menu" : ""}
+ data-channel="${item.channel}" data-confirm="${confirm}">
+ ${(item.hide ? "&bull; " : "") + item.text}
+ </button></td>
`);
}
return `<table><tr>${controls.join("<td>&nbsp;&nbsp;&nbsp;</td>")}</tr></table>`;