]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: fix unchecking 'Filter VMID'
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 24 Sep 2020 13:18:20 +0000 (15:18 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 25 Sep 2020 07:06:43 +0000 (09:06 +0200)
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@proxmox.com>
www/manager6/grid/BackupView.js

index ff998315aec429f5dfaa5b033214f7e71ff1a25c..ff8d69ec9599f56a65c4dab87a0a21b65f02f684 100644 (file)
@@ -126,6 +126,7 @@ Ext.define('PVE.grid.BackupView', {
            listeners: {
                change: function(cb, value) {
                    vmidFilter.value = !!value ? vmid : '';
+                   vmidFilter.exactMatch = !!value;
                    updateFilter();
                },
            },