mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-05-30 21:30:09 +00:00
ui: cifs: monitor scan-store errors and show in combobox
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
bc13cc36d3
commit
fcd95fc1d2
@ -92,6 +92,25 @@ Ext.define('PVE.storage.CIFSScan', {
|
|||||||
});
|
});
|
||||||
|
|
||||||
me.callParent();
|
me.callParent();
|
||||||
|
|
||||||
|
let picker = me.getPicker();
|
||||||
|
// don't use monStoreErrors directly, it doesn't copes well with comboboxes
|
||||||
|
picker.mon(store, 'beforeload', function(s, operation, eOpts) {
|
||||||
|
picker.unmask();
|
||||||
|
delete picker.minHeight;
|
||||||
|
});
|
||||||
|
picker.mon(store.proxy, 'afterload', function(proxy, request, success) {
|
||||||
|
if (success) {
|
||||||
|
Proxmox.Utils.setErrorMask(picker, false);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
let error = request._operation.getError();
|
||||||
|
let msg = Proxmox.Utils.getResponseErrorMessage(error);
|
||||||
|
if (msg) {
|
||||||
|
picker.minHeight = 100;
|
||||||
|
}
|
||||||
|
Proxmox.Utils.setErrorMask(picker, msg);
|
||||||
|
});
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user