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>
Sat, 12 Jun 2021 17:22:53 +0000 (19:22 +0200)
commit1ef7cbf9daa50e9d7fe2699747ce19ecff8b9f04
tree2fb5153d1ca682754583097d9bfaea17fd5ca5fa
parent54b2195dcf4903c65f0b2cbf9a520b8c0c11967c
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>
(cherry picked from commit 147188f6ee7067119746ffc2a505ef8f4eb8943a)
modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js