[pve-devel] [PATCH manager 1/5] ui: fix pci map selector status column
Dominik Csapak
d.csapak at proxmox.com
Mon Jun 19 11:13:30 CEST 2023
the 'errors' property changed to 'checks' so we have to adapt here too
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
www/manager6/form/PCIMapSelector.js | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/www/manager6/form/PCIMapSelector.js b/www/manager6/form/PCIMapSelector.js
index 3ded65dc..4dca62ea 100644
--- a/www/manager6/form/PCIMapSelector.js
+++ b/www/manager6/form/PCIMapSelector.js
@@ -43,7 +43,7 @@ Ext.define('PVE.form.PCIMapSelector', {
},
{
header: gettext('Status'),
- dataIndex: 'errors',
+ dataIndex: 'checks',
renderer: function(value) {
let me = this;
@@ -51,11 +51,11 @@ Ext.define('PVE.form.PCIMapSelector', {
return `<i class="fa fa-check-circle good"></i> ${gettext('Mapping OK')}`;
}
- let errors = [];
+ let checks = [];
- value.forEach((error) => {
+ value.forEach((check) => {
let iconCls;
- switch (error?.severity) {
+ switch (check?.severity) {
case 'warning':
iconCls = 'fa-exclamation-circle warning';
break;
@@ -64,14 +64,14 @@ Ext.define('PVE.form.PCIMapSelector', {
break;
}
- let message = error?.message;
+ let message = check?.message;
let icon = `<i class="fa ${iconCls}"></i>`;
if (iconCls !== undefined) {
- errors.push(`${icon} ${message}`);
+ checks.push(`${icon} ${message}`);
}
});
- return errors.join('<br>');
+ return checks.join('<br>');
},
flex: 3,
},
--
2.30.2
More information about the pve-devel
mailing list