[pve-devel] [PATCH manager 1/2] filter backup always by vm type

Dominik Csapak d.csapak at proxmox.com
Mon Mar 21 12:57:38 CET 2016


currently, as soon as you type something in the backup search bar,
the filter for the vm type (e.g. lxc or qemu) gets cleared, and
you see *all* backups (also those not for the current type)

this patch adds the original filterFn to the filter when searching

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager/grid/BackupView.js  | 1 +
 www/manager6/grid/BackupView.js | 1 +
 2 files changed, 2 insertions(+)

diff --git a/www/manager/grid/BackupView.js b/www/manager/grid/BackupView.js
index aba6d2d..d45ab4d 100644
--- a/www/manager/grid/BackupView.js
+++ b/www/manager/grid/BackupView.js
@@ -89,6 +89,7 @@ Ext.define('PVE.grid.BackupView', {
 		keyup: function(field) {
 		    me.store.clearFilter(true);
 		    me.store.filter([
+			filterFn,
 			{
 			    property: 'volid',
 			    value: field.getValue(),
diff --git a/www/manager6/grid/BackupView.js b/www/manager6/grid/BackupView.js
index f1e28f5..8ae0902 100644
--- a/www/manager6/grid/BackupView.js
+++ b/www/manager6/grid/BackupView.js
@@ -89,6 +89,7 @@ Ext.define('PVE.grid.BackupView', {
 		keyup: function(field) {
 		    me.store.clearFilter(true);
 		    me.store.filter([
+			filterFn,
 			{
 			    property: 'volid',
 			    value: field.getValue(),
-- 
2.1.4





More information about the pve-devel mailing list