From 90779237ae1aadf9b5e505a817d2888305e9d63c Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Thu, 25 Jun 2020 10:45:47 +0200 Subject: [PATCH] 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 --- www/DataStoreContent.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/www/DataStoreContent.js b/www/DataStoreContent.js index a8bd5b74..746037e9 100644 --- a/www/DataStoreContent.js +++ b/www/DataStoreContent.js @@ -64,7 +64,7 @@ Ext.define('PBS.DataStoreContent', { 'text', 'backup-time' ]); - Proxmox.Utils.monStoreErrors(view, view.store, true); + Proxmox.Utils.monStoreErrors(view, this.store); this.reload(); // initial load }, @@ -122,10 +122,11 @@ Ext.define('PBS.DataStoreContent', { return groups; }, - onLoad: function(store, records, success) { + onLoad: function(store, records, success, operation) { let view = this.getView(); if (!success) { + Proxmox.Utils.setErrorMask(view, Proxmox.Utils.getResponseErrorMessage(operation.getError())); return; } @@ -176,6 +177,7 @@ Ext.define('PBS.DataStoreContent', { expanded: true, children: children }); + Proxmox.Utils.setErrorMask(view, false); }, onPrune: function() {