summaryrefslogtreecommitdiffhomepage
path: root/protocols
diff options
context:
space:
mode:
authorRobert Walli <12079858+rwalli@users.noreply.github.com>2021-11-12 23:20:10 +0100
committerFlorian Eckert <fe@dev.tdt.de>2021-11-17 16:38:20 +0100
commitaaa2b3dd2b7124d7d5f23ed31f670e89dcde81c6 (patch)
treecbc18cad584432532eb00c75cdebb513b5697004 /protocols
parent00dc07bb84f0bc1cc8d27c8f95e533aca07501d4 (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.js3
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';