From: Florian Eckert Date: Tue, 20 Jan 2026 08:01:00 +0000 (+0100) Subject: Revert "luci-app-mwan3: delete additional mwan3 load call" X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=4ddbf0831c6cb6768770b5a55373bc19ed8a1e57;p=openwrt-luci.git Revert "luci-app-mwan3: delete additional mwan3 load call" This commit introduces a regression, so that in the policy, rule and member pages, the dropdowns are not filled with the required configuration options from the mwan3 configuration. Reverting the commit resolves the issue and the dropdowns are filled with values again. Fixes: #8232 This reverts commit 1243d8023aaaf29a7cb750e104b5e96ec3689544. Signed-off-by: Florian Eckert --- diff --git a/applications/luci-app-mwan3/htdocs/luci-static/resources/view/mwan3/network/member.js b/applications/luci-app-mwan3/htdocs/luci-static/resources/view/mwan3/network/member.js index 383ee59b5e..814d1401a4 100644 --- a/applications/luci-app-mwan3/htdocs/luci-static/resources/view/mwan3/network/member.js +++ b/applications/luci-app-mwan3/htdocs/luci-static/resources/view/mwan3/network/member.js @@ -5,6 +5,11 @@ 'require ui'; return view.extend({ + load: function() { + return Promise.all([ + uci.load('mwan3') + ]); + }, render: function () { let m, s, o; diff --git a/applications/luci-app-mwan3/htdocs/luci-static/resources/view/mwan3/network/policy.js b/applications/luci-app-mwan3/htdocs/luci-static/resources/view/mwan3/network/policy.js index 6c1ef219e5..73ab7b7469 100644 --- a/applications/luci-app-mwan3/htdocs/luci-static/resources/view/mwan3/network/policy.js +++ b/applications/luci-app-mwan3/htdocs/luci-static/resources/view/mwan3/network/policy.js @@ -5,6 +5,11 @@ 'require ui'; return view.extend({ + load: function() { + return Promise.all([ + uci.load('mwan3') + ]); + }, render: function () { let m, s, o; diff --git a/applications/luci-app-mwan3/htdocs/luci-static/resources/view/mwan3/network/rule.js b/applications/luci-app-mwan3/htdocs/luci-static/resources/view/mwan3/network/rule.js index 833bb2b193..a6523ec2e9 100644 --- a/applications/luci-app-mwan3/htdocs/luci-static/resources/view/mwan3/network/rule.js +++ b/applications/luci-app-mwan3/htdocs/luci-static/resources/view/mwan3/network/rule.js @@ -8,7 +8,8 @@ return view.extend({ load: function() { return Promise.all([ - fs.exec_direct('/usr/libexec/luci-mwan3', ['ipset', 'dump']) + fs.exec_direct('/usr/libexec/luci-mwan3', ['ipset', 'dump']), + uci.load('mwan3') ]); },