diff options
author | Robert Walli <12079858+rwalli@users.noreply.github.com> | 2021-11-12 23:20:10 +0100 |
---|---|---|
committer | Florian Eckert <fe@dev.tdt.de> | 2021-11-17 16:38:20 +0100 |
commit | aaa2b3dd2b7124d7d5f23ed31f670e89dcde81c6 (patch) | |
tree | cbc18cad584432532eb00c75cdebb513b5697004 /protocols | |
parent | 00dc07bb84f0bc1cc8d27c8f95e533aca07501d4 (diff) |
luci-proto-wireguard: add option to disable peer-section
Submitted-by: Robert Walli <12079858+rwalli@users.noreply.github.com>
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js | 3 |
1 files changed, 3 insertions, 0 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 5795eaebec..e361b2f5ea 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 @@ -151,6 +151,9 @@ return network.registerProtocol('wireguard', { ]); }; + o = ss.option(form.Flag, 'disabled', _('Peer disabled'), _('Enable / Disable peer. Restart wireguard interface to apply changes.')); + o.optional = true; + o = ss.option(form.Value, 'description', _('Description'), _('Optional. Description of peer.')); o.placeholder = 'My Peer'; o.datatype = 'string'; |