ui: boot order: eslint fixes

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-10-22 18:43:31 +02:00
parent 2dddf3ba59
commit eb4b9246a8

View File

@ -4,7 +4,7 @@ Ext.define('pve-boot-order-entry', {
{ name: 'name', type: 'string' },
{ name: 'enabled', type: 'bool' },
{ name: 'desc', type: 'string' },
]
],
});
Ext.define('PVE.qemu.BootOrderPanel', {
@ -81,8 +81,7 @@ Ext.define('PVE.qemu.BootOrderPanel', {
let disabled = [];
Ext.Object.each(me.vmconfig, function(key, value) {
if (me.isBootdev(key, value) &&
!Ext.Array.some(bootorder, x => x.name === key))
{
!Ext.Array.some(bootorder, x => x.name === key)) {
disabled.push(key);
}
});
@ -178,13 +177,13 @@ Ext.define('PVE.qemu.BootOrderPanel', {
plugins: {
ptype: 'gridviewdragdrop',
dragText: gettext('Drag and drop to reorder'),
}
},
},
listeners: {
drop: function() {
// doesn't fire automatically on reorder
this.getStore().fireEvent("update");
}
},
},
},
{
@ -214,7 +213,7 @@ Ext.define('PVE.qemu.BootOrderPanel', {
// not a subclass, so no callParent; just do it manually
me.setRawValue(me.valueToRaw(val));
return me.mixins.field.setValue.call(me, val);
}
},
},
],
@ -246,11 +245,11 @@ Ext.define('PVE.qemu.BootOrderPanel', {
marker.checkDirty();
emptyWarning.setHidden(val !== '');
grid.getView().refresh();
}
}
},
},
});
grid.setStore(me.store);
}
},
});
Ext.define('PVE.qemu.BootOrderEdit', {
@ -258,7 +257,7 @@ Ext.define('PVE.qemu.BootOrderEdit', {
items: [{
xtype: 'pveQemuBootOrderPanel',
itemId: 'inputpanel'
itemId: 'inputpanel',
}],
subject: gettext('Boot Order'),
@ -270,7 +269,7 @@ Ext.define('PVE.qemu.BootOrderEdit', {
me.load({
success: function(response, options) {
me.down('#inputpanel').setVMConfig(response.result.data);
}
},
});
}
},
});