mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-03 23:13:56 +08:00
🤞 Sync 2026-09-30 09:28:31
This commit is contained in:
1 parent
0108cfa10a
commit
3d9edb1c37
78 files changed
+4594
-1815
No files matched your search
@@ -3200,7 +3200,13 @@ return view.extend({
|
||||
inetBtn.disabled = true;
|
||||
var action = inetBtn._action;
|
||||
var fn = action === 'block' ? callBlock : callUnblock;
|
||||
fn(ip, '').then(function() {
|
||||
fn(ip, '').then(function(res) {
|
||||
// A block without a known MAC covers IPv4 only, and the backend
|
||||
// says so in msg. Swallowing it here would put the UI back to
|
||||
// reporting a block that does not block (issue #67).
|
||||
if (res && res.ipv6 === false) {
|
||||
setStatus(statusDiv, 'error', (res && res.msg) || '?');
|
||||
}
|
||||
runQuery();
|
||||
}).catch(function(e) {
|
||||
setStatus(statusDiv, 'error', e.message);
|
||||
|
||||
Reference in new issue
Block a user