mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-11-03 19:45:51 +00:00
ui: window/bulkaction: eslint fixes and code cleanup/refactoring/modernize
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
e5d5764668
commit
f4eab70a57
@ -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);
|
||||
}
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user