ui: eslint auto-fixes

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-05-18 15:21:58 +02:00
parent f09f1c27ad
commit 8af03a8dbd
6 changed files with 27 additions and 35 deletions

View File

@ -13,7 +13,7 @@ Ext.define('PVE.form.SDNDnsSelector', {
model: 'pve-sdn-dns', model: 'pve-sdn-dns',
sorters: { sorters: {
property: 'dns', property: 'dns',
order: 'DESC' order: 'DESC',
}, },
}); });
@ -26,27 +26,25 @@ Ext.define('PVE.form.SDNDnsSelector', {
header: gettext('dns'), header: gettext('dns'),
sortable: true, sortable: true,
dataIndex: 'dns', dataIndex: 'dns',
flex: 1 flex: 1,
}, },
] ],
} },
}); });
me.callParent(); me.callParent();
store.load(); store.load();
} },
}, function() { }, function() {
Ext.define('pve-sdn-dns', { Ext.define('pve-sdn-dns', {
extend: 'Ext.data.Model', extend: 'Ext.data.Model',
fields: [ 'dns' ], fields: ['dns'],
proxy: { proxy: {
type: 'proxmox', type: 'proxmox',
url: "/api2/json/cluster/sdn/dns" url: "/api2/json/cluster/sdn/dns",
}, },
idProperty: 'dns' idProperty: 'dns',
}); });
}); });

View File

@ -13,7 +13,7 @@ Ext.define('PVE.form.SDNIpamSelector', {
model: 'pve-sdn-ipam', model: 'pve-sdn-ipam',
sorters: { sorters: {
property: 'ipam', property: 'ipam',
order: 'DESC' order: 'DESC',
}, },
}); });
@ -26,27 +26,25 @@ Ext.define('PVE.form.SDNIpamSelector', {
header: gettext('Ipam'), header: gettext('Ipam'),
sortable: true, sortable: true,
dataIndex: 'ipam', dataIndex: 'ipam',
flex: 1 flex: 1,
}, },
] ],
} },
}); });
me.callParent(); me.callParent();
store.load(); store.load();
} },
}, function() { }, function() {
Ext.define('pve-sdn-ipam', { Ext.define('pve-sdn-ipam', {
extend: 'Ext.data.Model', extend: 'Ext.data.Model',
fields: [ 'ipam' ], fields: ['ipam'],
proxy: { proxy: {
type: 'proxmox', type: 'proxmox',
url: "/api2/json/cluster/sdn/ipams" url: "/api2/json/cluster/sdn/ipams",
}, },
idProperty: 'ipam' idProperty: 'ipam',
}); });
}); });

View File

@ -13,7 +13,7 @@ Ext.define('PVE.form.SDNVnetSelector', {
model: 'pve-sdn-vnet', model: 'pve-sdn-vnet',
sorters: { sorters: {
property: 'vnet', property: 'vnet',
order: 'DESC' order: 'DESC',
}, },
}); });
@ -26,7 +26,7 @@ Ext.define('PVE.form.SDNVnetSelector', {
header: gettext('Vnet'), header: gettext('Vnet'),
sortable: true, sortable: true,
dataIndex: 'vnet', dataIndex: 'vnet',
flex: 1 flex: 1,
}, },
{ {
header: gettext('Alias'), header: gettext('Alias'),
@ -37,18 +37,17 @@ Ext.define('PVE.form.SDNVnetSelector', {
header: gettext('Tag'), header: gettext('Tag'),
flex: 1, flex: 1,
dataIndex: 'tag', dataIndex: 'tag',
} },
] ],
} },
}); });
me.callParent(); me.callParent();
store.load(); store.load();
} },
}, function() { }, function() {
Ext.define('pve-sdn-vnet', { Ext.define('pve-sdn-vnet', {
extend: 'Ext.data.Model', extend: 'Ext.data.Model',
fields: [ fields: [
@ -60,9 +59,8 @@ Ext.define('PVE.form.SDNVnetSelector', {
], ],
proxy: { proxy: {
type: 'proxmox', type: 'proxmox',
url: "/api2/json/cluster/sdn/vnets" url: "/api2/json/cluster/sdn/vnets",
}, },
idProperty: 'vnet' idProperty: 'vnet',
}); });
}); });

View File

@ -104,7 +104,7 @@ Ext.define('PVE.ha.GroupInputPanel', {
}, },
isValid: function() { isValid: function() {
var value = nodefield.getValue(); var value = nodefield.getValue();
return value && 0 !== value.length; return value && value.length !== 0;
}, },
}); });

View File

@ -126,11 +126,9 @@ Ext.define('PVE.ha.VMResourceInputPanel', {
'change': function(field, newValue) { 'change': function(field, newValue) {
if (newValue === 'disabled') { if (newValue === 'disabled') {
disabledHint.setVisible(true); disabledHint.setVisible(true);
} else { } else if (disabledHint.isVisible()) {
if (disabledHint.isVisible()) {
disabledHint.setVisible(false); disabledHint.setVisible(false);
} }
}
}, },
}, },
}, },

View File

@ -253,7 +253,7 @@ Ext.define('PVE.window.Migrate', {
severity: 'error', severity: 'error',
}); });
} else { } else {
return;
} }
} else { } else {
migration.possible = false; migration.possible = false;