pikvm/pikvm#1312: Option to close GPIO menu after click

This commit is contained in:
Maxim Devaev
2024-05-12 03:43:57 +03:00
parent ee982946be
commit d2bc31d1cd
2 changed files with 9 additions and 2 deletions

View File

@@ -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>`;