diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2021-05-20 14:00:36 +0200 |
---|---|---|
committer | Rafał Miłecki <rafal@milecki.pl> | 2021-05-20 14:04:34 +0200 |
commit | 907b4222f70b3351d590d8a2e35c21a4ae07db8d (patch) | |
tree | da54c9e144dc64322431bab5f05822c35d94a8ec /modules | |
parent | acbe92b4e6475cd157cff384176d6c80bff4dc28 (diff) |
luci-mod-network: don't hide "Device" on protocol change
Device ("ifname" UCI option) doesn't depend on protocol so there is no
need to hide / reset it on protocol change.
While at it drop names of two removed inputs (dead code).
Fixes: ec020cee0c44 ("luci-mod-network: drop support for *editing* legacy bridges")
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js index 4eccc0beb5..9613ef6258 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js @@ -826,6 +826,7 @@ return view.extend({ o = s.children[i]; switch (o.option) { + case 'ifname': case 'proto': case 'auto': case '_dhcp': @@ -834,8 +835,6 @@ return view.extend({ case '_ifacestat_modal': continue; - case 'ifname_multi': - case 'ifname_single': case 'igmp_snooping': case 'stp': case 'type': |