From 2f8fe1a335309f55a04e856dea6f1ad84caaa22e Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Fri, 6 Oct 2017 14:36:08 +0200 Subject: [PATCH] add missing clearbeforeload arguments for monStoreErrors otherwise we gat double loading masks Signed-off-by: Dominik Csapak --- js/ActionList.js | 2 +- js/ClusterAdministration.js | 1 + js/MyNetworks.js | 2 +- js/ObjectGroupList.js | 2 +- js/QuarantineList.js | 1 + js/RelayDomains.js | 2 +- js/RuleConfiguration.js | 2 +- js/Transport.js | 2 +- js/UserBlackWhiteList.js | 5 ++--- 9 files changed, 10 insertions(+), 9 deletions(-) diff --git a/js/ActionList.js b/js/ActionList.js index 0d08bc9..0747533 100644 --- a/js/ActionList.js +++ b/js/ActionList.js @@ -117,7 +117,7 @@ Ext.define('PMG.ActionList', { remove_btn ]; - Proxmox.Utils.monStoreErrors(me, me.store); + Proxmox.Utils.monStoreErrors(me, me.store, true); if (me.enableButtons) { me.tbar = tbar; diff --git a/js/ClusterAdministration.js b/js/ClusterAdministration.js index b7d91bd..9fd924b 100644 --- a/js/ClusterAdministration.js +++ b/js/ClusterAdministration.js @@ -128,6 +128,7 @@ Ext.define('PMG.ClusterAdministration', { init: function(view) { view.store.on('load', this.onLoad, this); + Proxmox.Utils.monStoreErrors(view, view.getStore()); }, onLoad: function(store, records) { diff --git a/js/MyNetworks.js b/js/MyNetworks.js index 817f48f..a543248 100644 --- a/js/MyNetworks.js +++ b/js/MyNetworks.js @@ -106,7 +106,7 @@ Ext.define('PMG.MyNetworks', { remove_btn ]; - Proxmox.Utils.monStoreErrors(me, store); + Proxmox.Utils.monStoreErrors(me, store, true); Ext.apply(me, { store: store, diff --git a/js/ObjectGroupList.js b/js/ObjectGroupList.js index 75b8f96..e30ed2d 100644 --- a/js/ObjectGroupList.js +++ b/js/ObjectGroupList.js @@ -134,7 +134,7 @@ Ext.define('PMG.ObjectGroupList', { ]; /*jslint confusion: false*/ - Proxmox.Utils.monStoreErrors(me, me.store); + Proxmox.Utils.monStoreErrors(me, me.store, true); if (me.enableButtons) { me.tbar = tbar; diff --git a/js/QuarantineList.js b/js/QuarantineList.js index 4998893..41cbaae 100644 --- a/js/QuarantineList.js +++ b/js/QuarantineList.js @@ -31,6 +31,7 @@ Ext.define('PMG.QuarantineList', { me.lookupReference('from').setValue(today); me.lookupReference('to').setValue(today); + Proxmox.Utils.monStoreErrors(view.getView(), view.getStore()); me.load(function() { if (view.cselect) { view.setSelection(view.getStore().getById(view.cselect)); diff --git a/js/RelayDomains.js b/js/RelayDomains.js index 4f60c15..ceec99a 100644 --- a/js/RelayDomains.js +++ b/js/RelayDomains.js @@ -106,7 +106,7 @@ Ext.define('PMG.RelayDomains', { remove_btn ]; - Proxmox.Utils.monStoreErrors(me, store); + Proxmox.Utils.monStoreErrors(me, store, true); Ext.apply(me, { store: store, diff --git a/js/RuleConfiguration.js b/js/RuleConfiguration.js index 2d6d8ce..bb95468 100644 --- a/js/RuleConfiguration.js +++ b/js/RuleConfiguration.js @@ -93,7 +93,7 @@ Ext.define('PMG.RulesConfiguration', { init: function(view) { var grid = this.lookupReference('rulegrid'); - Proxmox.Utils.monStoreErrors(grid, grid.store); + Proxmox.Utils.monStoreErrors(grid, grid.getStore(), true); }, control: { diff --git a/js/Transport.js b/js/Transport.js index fe2558b..a1ef53d 100644 --- a/js/Transport.js +++ b/js/Transport.js @@ -127,7 +127,7 @@ Ext.define('PMG.Transport', { remove_btn ]; - Proxmox.Utils.monStoreErrors(me, store); + Proxmox.Utils.monStoreErrors(me, store, true); Ext.apply(me, { store: store, diff --git a/js/UserBlackWhiteList.js b/js/UserBlackWhiteList.js index 1c9ad07..bff10f5 100644 --- a/js/UserBlackWhiteList.js +++ b/js/UserBlackWhiteList.js @@ -85,12 +85,11 @@ Ext.define('PMG.UserBlackWhiteList', { view.getStore().load(); }, - init: function() { - var view = this.getView(); - + init: function(view) { if (PMG.view === 'quarantineview') { this.lookupReference('email').setVisible(false); } + Proxmox.Utils.monStoreErrors(view.getView(), view.getStore(), true); }, control: { -- 2.39.5