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',
sorters: {
property: 'dns',
order: 'DESC'
order: 'DESC',
},
});
@ -26,27 +26,25 @@ Ext.define('PVE.form.SDNDnsSelector', {
header: gettext('dns'),
sortable: true,
dataIndex: 'dns',
flex: 1
flex: 1,
},
],
},
]
}
});
me.callParent();
store.load();
}
},
}, function() {
Ext.define('pve-sdn-dns', {
extend: 'Ext.data.Model',
fields: [ 'dns' ],
fields: ['dns'],
proxy: {
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',
sorters: {
property: 'ipam',
order: 'DESC'
order: 'DESC',
},
});
@ -26,27 +26,25 @@ Ext.define('PVE.form.SDNIpamSelector', {
header: gettext('Ipam'),
sortable: true,
dataIndex: 'ipam',
flex: 1
flex: 1,
},
],
},
]
}
});
me.callParent();
store.load();
}
},
}, function() {
Ext.define('pve-sdn-ipam', {
extend: 'Ext.data.Model',
fields: [ 'ipam' ],
fields: ['ipam'],
proxy: {
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',
sorters: {
property: 'vnet',
order: 'DESC'
order: 'DESC',
},
});
@ -26,7 +26,7 @@ Ext.define('PVE.form.SDNVnetSelector', {
header: gettext('Vnet'),
sortable: true,
dataIndex: 'vnet',
flex: 1
flex: 1,
},
{
header: gettext('Alias'),
@ -37,18 +37,17 @@ Ext.define('PVE.form.SDNVnetSelector', {
header: gettext('Tag'),
flex: 1,
dataIndex: 'tag',
}
]
}
},
],
},
});
me.callParent();
store.load();
}
},
}, function() {
Ext.define('pve-sdn-vnet', {
extend: 'Ext.data.Model',
fields: [
@ -60,9 +59,8 @@ Ext.define('PVE.form.SDNVnetSelector', {
],
proxy: {
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() {
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) {
if (newValue === 'disabled') {
disabledHint.setVisible(true);
} else {
if (disabledHint.isVisible()) {
} else if (disabledHint.isVisible()) {
disabledHint.setVisible(false);
}
}
},
},
},

View File

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