luci-mod-network: don't hide "Device" on protocol change
authorRafał Miłecki <rafal@milecki.pl>
Thu, 20 May 2021 12:00:36 +0000 (14:00 +0200)
committerRafał Miłecki <rafal@milecki.pl>
Thu, 27 May 2021 10:19:08 +0000 (12:19 +0200)
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>
(cherry picked from commit 907b4222f70b3351d590d8a2e35c21a4ae07db8d)

modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js

index ba52a98637b35e35d87e8f191472ccd1776b41ff..085b8bfb335de1df1cd2f6f673e2c513e34eb469 100644 (file)
@@ -822,6 +822,7 @@ return view.extend({
                                        o = s.children[i];
 
                                        switch (o.option) {
+                                       case 'ifname':
                                        case 'proto':
                                        case 'auto':
                                        case '_dhcp':
@@ -830,8 +831,6 @@ return view.extend({
                                        case '_ifacestat_modal':
                                                continue;
 
-                                       case 'ifname_multi':
-                                       case 'ifname_single':
                                        case 'igmp_snooping':
                                        case 'stp':
                                        case 'type':