ui: dc options: add Color-Overrides text to render, if any

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2022-11-21 08:48:53 +01:00
parent 65cbfe79e4
commit 1d1a331949

View File

@ -345,11 +345,11 @@ Ext.define('PVE.dc.OptionView', {
let orderText = PVE.Utils.tagOrderOptions[value.ordering ?? '__default__']; let orderText = PVE.Utils.tagOrderOptions[value.ordering ?? '__default__'];
txt += `, ${Ext.String.format(gettext("Ordering: {0}"), orderText)}`; txt += `, ${Ext.String.format(gettext("Ordering: {0}"), orderText)}`;
if (Object.keys(colors).length > 0) { if (Object.keys(colors).length > 0) {
txt += ', '; txt += `, ${gettext('Color Overrides')}: `;
}
for (const tag of Object.keys(colors)) { for (const tag of Object.keys(colors)) {
txt += Proxmox.Utils.getTagElement(tag, colors); txt += Proxmox.Utils.getTagElement(tag, colors);
} }
}
return txt; return txt;
}, },
header: gettext('Tag Style Override'), header: gettext('Tag Style Override'),