luci-app-unbound: return 'enabled' boolean value

During load, we shall return the loaded boolean, as well
as setting the section_enabled boolean.

Closes #8400

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
This commit is contained in:
Paul Donald
2026-03-10 18:02:59 +01:00
parent 31f220d413
commit 944cb757bb

View 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();