]> git.proxmox.com Git - pve-manager.git/blobdiff - www/manager6/ha/GroupEdit.js
update shipped appliance info index
[pve-manager.git] / www / manager6 / ha / GroupEdit.js
index 3fb190b01f8c509ebefa35e51d87cbe773aa1cac..6db7bd057652c5fb7f39ac6255bdba5d3ca506e0 100644 (file)
@@ -69,7 +69,7 @@ Ext.define('PVE.ha.GroupInputPanel', {
                    dataIndex: 'cpu',
                },
                {
-                   header: 'Priority',
+                   header: gettext('Priority'),
                    xtype: 'widgetcolumn',
                    dataIndex: 'priority',
                    sortable: true,
@@ -123,19 +123,9 @@ Ext.define('PVE.ha.GroupInputPanel', {
        };
 
        update_nodefield = function(selected) {
-           var nodes = '';
-           var first_iteration = true;
-           Ext.Array.each(selected, function(record) {
-               if (!first_iteration) {
-                   nodes += ',';
-               }
-               first_iteration = false;
-
-               nodes += record.data.node;
-               if (record.data.priority) {
-                   nodes += ':' + record.data.priority;
-               }
-           });
+           let nodes = selected
+               .map(({ data }) => data.node + (data.priority ? `:${data.priority}` : ''))
+               .join(',');
 
            // nodefield change listener calls us again, which results in a
            // endless recursion, suspend the event temporary to avoid this