ui: resource map tree: make 'ok' status clearer

by changing into 'mapping matches host data' which indicates that the
configured values matches the host information

also for the pci and usb map selectors

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Dominik Csapak 2023-06-21 09:41:38 +02:00 committed by Thomas Lamprecht
parent f507ec30bb
commit 0a571cffc0
3 changed files with 3 additions and 3 deletions

@ -48,7 +48,7 @@ Ext.define('PVE.form.PCIMapSelector', {
let me = this;
if (!Ext.isArray(value) || !value?.length) {
return `<i class="fa fa-check-circle good"></i> ${gettext('Mapping OK')}`;
return `<i class="fa fa-check-circle good"></i> ${gettext('Mapping matches host data')}`;
}
let checks = [];

@ -34,7 +34,7 @@ Ext.define('PVE.form.USBMapSelector', {
let me = this;
if (!Ext.isArray(value) || !value?.length) {
return `<i class="fa fa-check-circle good"></i> ${gettext('Mapping OK')}`;
return `<i class="fa fa-check-circle good"></i> ${gettext('Mapping matches host data')}`;
}
let errors = [];

@ -228,7 +228,7 @@ Ext.define('PVE.tree.ResourceMapTree', {
} else {
let state = value ? 'good' : 'critical';
iconCls = PVE.Utils.get_health_icon(state, true);
status = value ? gettext("OK") : record.data.errmsg || Proxmox.Utils.unknownText;
status = value ? gettext("Mapping matches host data") : record.data.errmsg || Proxmox.Utils.unknownText;
}
return `<i class="fa ${iconCls}"></i> ${status}`;
},