mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 09:01:54 +08:00
pikvm/pikvm#1312: Option to close GPIO menu after click
This commit is contained in:
@@ -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 ? "• " : "") + item.text}
|
||||
</button></td>
|
||||
`);
|
||||
}
|
||||
return `<table><tr>${controls.join("<td> </td>")}</tr></table>`;
|
||||
|
||||
Reference in New Issue
Block a user