mirror of
https://github.com/openwrt/luci.git
synced 2026-04-15 19:01:56 +00:00
deploy: c7a778719f
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -355,7 +355,10 @@ function maskToPrefix(mask, v6) {
|
||||
function initNetworkState(refresh) {
|
||||
if (_state == null || refresh) {
|
||||
const hasWifi = L.hasSystemFeature('wifi');
|
||||
_init = _init || Promise.all([
|
||||
|
||||
if (refresh) _state = null;
|
||||
if (refresh || !_init) {
|
||||
_init = Promise.all([
|
||||
L.resolveDefault(callNetworkInterfaceDump(), []),
|
||||
L.resolveDefault(callLuciBoardJSON(), {}),
|
||||
L.resolveDefault(callLuciNetworkDevices(), {}),
|
||||
@@ -390,6 +393,7 @@ function initNetworkState(refresh) {
|
||||
link: dev.link,
|
||||
stats: dev.stats,
|
||||
macaddr: dev.mac,
|
||||
pse: dev?.pse,
|
||||
type: dev.type,
|
||||
devtype: dev.devtype,
|
||||
mtu: dev.mtu,
|
||||
@@ -532,6 +536,8 @@ function initNetworkState(refresh) {
|
||||
return (_state = s);
|
||||
});
|
||||
});
|
||||
} // end if (refresh || !_init)
|
||||
|
||||
}
|
||||
|
||||
return (_state != null ? Promise.resolve(_state) : _init);
|
||||
@@ -3676,7 +3682,7 @@ WifiDevice = baseclass.extend(/** @lends LuCI.network.WifiDevice.prototype */ {
|
||||
if (sid == null || uci.get('wireless', sid, 'device') != this.sid)
|
||||
return Promise.resolve(false);
|
||||
|
||||
uci.delete('wireless', network);
|
||||
uci.remove('wireless', sid);
|
||||
|
||||
return Promise.resolve(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user