ui: show proper loadMask for DataStoreContent
we have to use the correct store, and we have to manually show the error (since monStoreErrors only works for Proxmox Proxies) Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
1f82f9b7b5
commit
90779237ae
@ -64,7 +64,7 @@ Ext.define('PBS.DataStoreContent', {
|
|||||||
'text',
|
'text',
|
||||||
'backup-time'
|
'backup-time'
|
||||||
]);
|
]);
|
||||||
Proxmox.Utils.monStoreErrors(view, view.store, true);
|
Proxmox.Utils.monStoreErrors(view, this.store);
|
||||||
this.reload(); // initial load
|
this.reload(); // initial load
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -122,10 +122,11 @@ Ext.define('PBS.DataStoreContent', {
|
|||||||
return groups;
|
return groups;
|
||||||
},
|
},
|
||||||
|
|
||||||
onLoad: function(store, records, success) {
|
onLoad: function(store, records, success, operation) {
|
||||||
let view = this.getView();
|
let view = this.getView();
|
||||||
|
|
||||||
if (!success) {
|
if (!success) {
|
||||||
|
Proxmox.Utils.setErrorMask(view, Proxmox.Utils.getResponseErrorMessage(operation.getError()));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -176,6 +177,7 @@ Ext.define('PBS.DataStoreContent', {
|
|||||||
expanded: true,
|
expanded: true,
|
||||||
children: children
|
children: children
|
||||||
});
|
});
|
||||||
|
Proxmox.Utils.setErrorMask(view, false);
|
||||||
},
|
},
|
||||||
|
|
||||||
onPrune: function() {
|
onPrune: function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user