]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: fix not opening 'bulk action' windows
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 14 Mar 2023 10:20:36 +0000 (11:20 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 14 Mar 2023 10:37:47 +0000 (11:37 +0100)
we previously removed the 'filters' property from the store, but this
has the effect that the filter array is only ever initialized when
we try to access them via the specified api of extjs

so instead of adding them manually to their array, use the 'addFilter'
method of extjs

also use 'getStore()' instead of directly accessing the store to be
consistent with the extjs api use

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
www/manager6/form/VMSelector.js

index e9eb5dbaa2112bf5c270ba4c6a5af6f9fe0a6e4e..4c0bba137d6e41d52414d4138dcf65cfaea1ff3d 100644 (file)
@@ -211,7 +211,7 @@ Ext.define('PVE.form.VMSelector', {
        me.getStore().load({ params: { type: 'vm' } });
 
        if (me.nodename) {
-           me.store.filters.add({
+           me.getStore().addFilter({
                property: 'node',
                exactMatch: true,
                value: me.nodename,
@@ -230,7 +230,7 @@ Ext.define('PVE.form.VMSelector', {
                    break;
            }
            if (statusfilter !== '') {
-               me.store.filters.add({
+               me.getStore().addFilter([{
                    property: 'template',
                    value: 0,
                }, {
@@ -238,7 +238,7 @@ Ext.define('PVE.form.VMSelector', {
                    operator: 'in',
                    property: 'status',
                    value: [statusfilter],
-               });
+               }]);
            }
        }