From 0237325b2707eaf5a92af0795c9fdd1b2ad82707 Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Fri, 26 Jun 2020 14:59:47 +0200 Subject: [PATCH] Add label on interface --- .../htdocs/luci-static/resources/view/network/interfaces.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js b/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js index 4415b4bae..4b4dc949e 100644 --- a/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js +++ b/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js @@ -394,6 +394,10 @@ return view.extend({ }, this); o.write = function() {}; + o = s.taboption('general', form.Value, 'label', _('Label')); + o.modalonly = true; + o.optional = true; + proto_select = s.taboption('general', form.ListValue, 'proto', _('Protocol')); proto_select.modalonly = true;