ui: eslint auto-fixes

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2022-11-17 17:59:45 +01:00
parent 1f359096b6
commit 13a0c8bf11
3 changed files with 5 additions and 5 deletions

View File

@ -1941,7 +1941,7 @@ Ext.define('PVE.Utils', {
if (tagstext) {
let tags = (tagstext.split(/[,; ]/) || []).filter(t => !!t);
if (PVE.Utils.shouldSortTags()) {
tags = tags.sort((a,b) => {
tags = tags.sort((a, b) => {
let alc = a.toLowerCase();
let blc = b.toLowerCase();
return alc < blc ? -1 : blc < alc ? 1 : a.localeCompare(b);

View File

@ -383,7 +383,7 @@ Ext.define('PVE.dc.OptionView', {
xtype: 'proxmoxComboGrid',
fieldLabel: gettext('Tree Shape'),
valueField: 'value',
displayField:'display',
displayField: 'display',
listConfig: {
columns: [
{
@ -397,13 +397,13 @@ Ext.define('PVE.dc.OptionView', {
renderer: function(value) {
let cls = value ?? '__default__';
if (value === '__default__') {
cls = 'circle'
cls = 'circle';
}
let tags = PVE.Utils.renderTags('preview');
return `<div class="proxmox-tags-${cls}">${tags}</div>`;
},
flex: 1,
}
},
],
},
store: {

View File

@ -195,7 +195,7 @@ Ext.define('PVE.panel.TagEditContainer', {
if (tagField.xtype !== 'pveTag') {
return true;
}
let a = tagField.tag.toLowerCase()
let a = tagField.tag.toLowerCase();
let b = tag.toLowerCase();
return a > b ? true : a < b ? false : tagField.tag.localeCompare(tag) > 0;
}, 1);