});
},
- initComponent : function() {
+ initComponent: function() {
var me = this;
if (!me.nodename) {
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);
}
},
});
Ext.apply(me, {
- items: [ me.formPanel ],
- buttons: [ submitBtn ],
+ items: [me.formPanel],
+ buttons: [submitBtn],
});
me.callParent();