mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-11 14:57:53 +08:00
🌈 Sync 2026-05-19 02:35:14
This commit is contained in:
1 parent
595807ea37
commit
ca5e918f4b
81 files changed
+12003
-3193
No files matched your search
+14
-5
@@ -19,7 +19,11 @@ return baseclass.extend({
|
||||
title: _('Cellular network'),
|
||||
|
||||
load: async function() {
|
||||
uci.load('modeminfo');
|
||||
await uci.load('modeminfo');
|
||||
var index = uci.sections('modeminfo', 'general');
|
||||
if (!index || !index[0] || index[0].index !== "1") {
|
||||
return null;
|
||||
};
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
const timeout = setTimeout(() => {
|
||||
@@ -43,10 +47,15 @@ return baseclass.extend({
|
||||
|
||||
render: function(data){
|
||||
if (!data || data.trim() === '') {
|
||||
return E('div', {
|
||||
'class': 'cbi-section',
|
||||
'style': 'color: #999; text-align: center;'
|
||||
}, _('Wait devices information'));
|
||||
var index = uci.sections('modeminfo', 'general');
|
||||
if (!index || !index[0] || index[0].index !== "1") {
|
||||
return null;
|
||||
} else {
|
||||
return E('div', {
|
||||
'class': 'cbi-section',
|
||||
'style': 'color: #999; text-align: center;'
|
||||
}, _('Wait devices information'));
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user