]> git.proxmox.com Git - pve-manager-legacy.git/commitdiff
eslint fixes
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 12 Nov 2020 17:23:47 +0000 (18:23 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 12 Nov 2020 17:23:47 +0000 (18:23 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/grid/BackupView.js

index a9c6be5ea22ac0009e48913eff504ffde4bfce67..db492a7e7b3d6d09259321d7fa50eafd2077f3aa 100644 (file)
@@ -101,10 +101,10 @@ Ext.define('PVE.grid.BackupView', {
                change: function(f, value) {
                    let storage = f.getStore().findRecord('storage', value);
                    if (storage) {
-                       let isPbs = storage.data.type === 'pbs';
+                       let isPBS = storage.data.type === 'pbs';
                        me.getColumns().forEach((column) => {
                            if (column.dataIndex === 'verification') {
-                               column.setHidden(!isPbs);
+                               column.setHidden(!isPBS);
                            }
                        });
                    }
@@ -134,7 +134,7 @@ Ext.define('PVE.grid.BackupView', {
            value: '1',
            listeners: {
                change: function(cb, value) {
-                   vmidFilter.value = !!value ? vmid : '';
+                   vmidFilter.value = value ? vmid : '';
                    vmidFilter.exactMatch = !!value;
                    updateFilter();
                },
@@ -169,9 +169,7 @@ Ext.define('PVE.grid.BackupView', {
                return !!rec;
            },
            handler: function(b, e, rec) {
-               var volid = rec.data.volid;
-
-               var win = Ext.create('PVE.window.Restore', {
+               let win = Ext.create('PVE.window.Restore', {
                    nodename: nodename,
                    vmid: vmid,
                    volid: rec.data.volid,