[pmg-devel] [PATCH pmg-gui 2/3] limit userlist to the respective list
Dominik Csapak
d.csapak at proxmox.com
Tue Feb 26 09:12:38 CET 2019
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
js/UserBlackWhiteList.js | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/js/UserBlackWhiteList.js b/js/UserBlackWhiteList.js
index 96102ec..406350e 100644
--- a/js/UserBlackWhiteList.js
+++ b/js/UserBlackWhiteList.js
@@ -103,9 +103,14 @@ Ext.define('PMG.UserBlackWhiteList', {
},
init: function(view) {
+ var emailcb = this.lookupReference('email');
if (PMG.view === 'quarantineview') {
- this.lookupReference('email').setVisible(false);
+ emailcb.setVisible(false);
view.getStore().load();
+ } else {
+ emailcb.getStore().getProxy().setExtraParams({
+ list: view.listname === 'blacklist' ? 'BL' : 'WL'
+ });
}
Proxmox.Utils.monStoreErrors(view.getView(), view.getStore(), true);
},
--
2.11.0
More information about the pmg-devel
mailing list