mirror of
https://github.com/openwrt/luci.git
synced 2026-04-15 10:51:51 +00:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user