mirror of
https://github.com/gSpotx2f/ruantiblock_openwrt.git
synced 2026-05-14 22:50:58 +00:00
luci-app-ruantiblock: fixed settings.js.
This commit is contained in:
@@ -95,7 +95,6 @@ return view.extend({
|
|||||||
return Promise.all([
|
return Promise.all([
|
||||||
L.resolveDefault(fs.exec(tools.execPath, [ 'raw-status' ]), 1),
|
L.resolveDefault(fs.exec(tools.execPath, [ 'raw-status' ]), 1),
|
||||||
L.resolveDefault(fs.list(tools.parsersDir), null),
|
L.resolveDefault(fs.list(tools.parsersDir), null),
|
||||||
L.resolveDefault(fs.list(tools.dnsmasqCfgDirsRoot), null),
|
|
||||||
uci.load(tools.appName),
|
uci.load(tools.appName),
|
||||||
]).catch(e => {
|
]).catch(e => {
|
||||||
ui.addNotification(null, E('p', _('Unable to read the contents')
|
ui.addNotification(null, E('p', _('Unable to read the contents')
|
||||||
@@ -109,10 +108,10 @@ return view.extend({
|
|||||||
if(!data) {
|
if(!data) {
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
this.appStatusCode = data[0].code;
|
this.appStatusCode = data[0].code;
|
||||||
let p_dir_arr = data[1];
|
let p_dir_arr = data[1];
|
||||||
let curent_module = uci.get(tools.appName, 'config', 'bllist_module');
|
let curent_module = uci.get(tools.appName, 'config', 'bllist_module');
|
||||||
let curent_preset = uci.get(tools.appName, 'config', 'bllist_preset');
|
let curent_preset = uci.get(tools.appName, 'config', 'bllist_preset');
|
||||||
|
|
||||||
if(p_dir_arr) {
|
if(p_dir_arr) {
|
||||||
p_dir_arr.forEach(e => {
|
p_dir_arr.forEach(e => {
|
||||||
|
|||||||
Reference in New Issue
Block a user