var items = [];
if (me.action === 'migrateall') {
+ /*jslint confusion: true*/
+ /*value is string and number*/
items.push(
{
xtype: 'pveNodeSelector',
hidden: true // only visible if running container chosen
}
);
+ /*jslint confusion: false*/
} else if (me.action === 'startall') {
items.push({
xtype: 'hiddenfield',
listeners: {
selectionchange: function(vmselector, records) {
if (me.action == 'migrateall') {
- let showWarning = records.some(function(item) {
+ var showWarning = records.some(function(item) {
return (item.data.type == 'lxc' &&
item.data.status == 'running');
});
}
];
+ /*jslint confusion: true*/
if (me.vmtype === 'lxc') {
items.push({
xtype: 'proxmoxcheckbox',
fieldLabel: gettext('Unprivileged container')
});
}
+ /*jslint confusion: false*/
me.formPanel = Ext.create('Ext.form.Panel', {
bodyPadding: 10,