]> git.proxmox.com Git - pve-manager.git/blobdiff - www/manager6/window/BulkAction.js
ui: restore: allow override of some settings
[pve-manager.git] / www / manager6 / window / BulkAction.js
index a2005b565773df335025a1a22c3e95e2d9aea711..01233080ec1afa6901e2d0e4418ce9d79759bfda 100644 (file)
@@ -42,7 +42,7 @@ Ext.define('PVE.window.BulkAction', {
        });
     },
 
-    initComponent : function() {
+    initComponent: function() {
        var me = this;
 
        if (!me.nodename) {
@@ -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);
                    }
                },
@@ -167,8 +166,8 @@ Ext.define('PVE.window.BulkAction', {
        });
 
        Ext.apply(me, {
-           items: [ me.formPanel ],
-           buttons: [ submitBtn ],
+           items: [me.formPanel],
+           buttons: [submitBtn],
        });
 
        me.callParent();