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>
me.getStore().load({ params: { type: 'vm' } });
if (me.nodename) {
- me.store.filters.add({
+ me.getStore().addFilter({
property: 'node',
exactMatch: true,
value: me.nodename,
break;
}
if (statusfilter !== '') {
- me.store.filters.add({
+ me.getStore().addFilter([{
property: 'template',
value: 0,
}, {
operator: 'in',
property: 'status',
value: [statusfilter],
- });
+ }]);
}
}