diff options
author | Bryan Roessler <bryanroessler@gmail.com> | 2024-07-15 15:15:29 -0400 |
---|---|---|
committer | Paul Donald <newtwen+github@gmail.com> | 2024-07-15 22:49:32 +0200 |
commit | 071fc1bc92980454b6701d9394711b9d758f332a (patch) | |
tree | 911548f29c069c72a43c0473954cc93e57c7455f /protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol | |
parent | 40b41313386f54eec6d1c61098b99a7b04f2b3c0 (diff) |
luci-proto-wireguard: disable peers from the tab
It's clumsy to enable/disable peers from the modal, save some clicks
Signed-off-by: Bryan Roessler <bryanroessler@gmail.com>
Diffstat (limited to 'protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol')
-rw-r--r-- | protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js b/protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js index 05e0e275c7..aeccff4150 100644 --- a/protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js +++ b/protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js @@ -496,9 +496,10 @@ return network.registerProtocol('wireguard', { return E('em', _('No peers defined yet.')); }; - o = ss.option(form.Flag, 'disabled', _('Peer disabled'), _('Enable / Disable peer. Restart wireguard interface to apply changes.')); - o.modalonly = true; + o = ss.option(form.Flag, 'disabled', _('Disabled'), _('Enable / Disable peer. Restart wireguard interface to apply changes.')); + o.editable = true; o.optional = true; + o.width = '5%'; o = ss.option(form.Value, 'description', _('Description'), _('Optional. Description of peer.')); o.placeholder = 'My Peer'; |