luci-app-unbound: return 'enabled' boolean value
authorPaul Donald <redacted>
Tue, 10 Mar 2026 17:02:59 +0000 (18:02 +0100)
committerPaul Donald <redacted>
Tue, 10 Mar 2026 17:04:09 +0000 (18:04 +0100)
During load, we shall return the loaded boolean, as well
as setting the section_enabled boolean.

Closes #8400

Signed-off-by: Paul Donald <redacted>
applications/luci-app-unbound/htdocs/luci-static/resources/view/unbound/zones.js

index 830e91e2af46fb7ad5fe521667bee7c1e2011ec6..9c03ca0ede6a21c2c58c2a4850df3daba3ecbbc2 100644 (file)
@@ -126,6 +126,7 @@ return view.extend({
                ena.load = (section_id) => { 
                        let _temp = uci.get('unbound', section_id, 'enabled');
                        if (_temp === '1') section_enabled = true;
+                       return _temp;
                }
 
                return m.render();
git clone https://git.99rst.org/PROJECT