]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: window/bulkaction: eslint fixes and code cleanup/refactoring/modernize
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 19 May 2021 14:08:01 +0000 (16:08 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 19 May 2021 14:52:49 +0000 (16:52 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/window/BulkAction.js

index 135f570f33d0ba8d883d2a957b3f9acefe85298d..01233080ec1afa6901e2d0e4418ce9d79759bfda 100644 (file)
@@ -131,11 +131,10 @@ Ext.define('PVE.window.BulkAction', {
            action: me.action,
            listeners: {
                selectionchange: function(vmselector, records) {
-                   if (me.action == 'migrateall') {
-                       var showWarning = records.some(function(item) {
-                           return item.data.type == 'lxc' &&
-                               item.data.status == 'running';
-                       });
+                   if (me.action === 'migrateall') {
+                       let showWarning = records.some(
+                           item => item.data.type === 'lxc' && item.data.status === 'running',
+                       );
                        me.down('#lxcwarning').setVisible(showWarning);
                    }
                },