luci-mod-network: fix device dependencies in add interface dialog
authorJo-Philipp Wich <jo@mein.io>
Mon, 31 May 2021 09:50:56 +0000 (11:50 +0200)
committerJo-Philipp Wich <jo@mein.io>
Mon, 31 May 2021 09:50:56 +0000 (11:50 +0200)
commit147188f6ee7067119746ffc2a505ef8f4eb8943a
tree8ea8f498b3c16f1b61feaf84a9743e65a9401dca
parentdece9b063c16790df731a08f8e73978c51b6c90d
luci-mod-network: fix device dependencies in add interface dialog

Commit b7f3cf66ca "luci-mod-network: drop support for *adding* legacy bridges"
dropped the protocol dependcies of the ifname/device selector in the add new
interface dialog.

Re-add the required dependencies and swap the order of the protocol and
device inputs while we're at it since latter depends on the former.

Fixes: b7f3cf66ca ("luci-mod-network: drop support for *adding* legacy bridges")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js