luci-mod-network: clean up btn1 and btn2 disable
authorFlorian Eckert <[email protected]>
Tue, 7 Oct 2025 08:42:19 +0000 (10:42 +0200)
committerFlorian Eckert <[email protected]>
Fri, 10 Oct 2025 12:08:20 +0000 (14:08 +0200)
commit5710d594f1121cebe1e2476368549ae11d9af874
tree0229e6a0491104c7e4182a8d0d0953c84d442bc9
parented2c7f896568f97016ed0543c568266847efe67e
luci-mod-network: clean up btn1 and btn2 disable

In the current source, it is difficult to see when the disable button
should be shown or not. This commit adjusts this and moves the handling
to an if else statement, so that it can be easily seen.

Signed-off-by: Florian Eckert <[email protected]>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js