[pve-devel] [PATCH manager] ui: fix unchecking 'Filter VMID'

Dominik Csapak d.csapak at proxmox.com
Thu Sep 24 15:18:20 CEST 2020


if the checkbox is not checked, we set the value of the vmid filter to ''
but left 'exactMatch' enabled, which means we filter all out where
the vmid is not ''

what we instead want is to remove also the exactMatch so that we
get *all* entries back not *none*

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

diff --git a/www/manager6/grid/BackupView.js b/www/manager6/grid/BackupView.js
index ff998315..ff8d69ec 100644
--- a/www/manager6/grid/BackupView.js
+++ b/www/manager6/grid/BackupView.js
@@ -126,6 +126,7 @@ Ext.define('PVE.grid.BackupView', {
 	    listeners: {
 		change: function(cb, value) {
 		    vmidFilter.value = !!value ? vmid : '';
+		    vmidFilter.exactMatch = !!value;
 		    updateFilter();
 		},
 	    },
-- 
2.20.1






More information about the pve-devel mailing list