public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH manager 1/5] ui: fix pci map selector status column
@ 2023-06-19  9:13 Dominik Csapak
  2023-06-19  9:13 ` [pve-devel] [PATCH manager 2/5] ui: multi pci selector: reset the selection properly on nodename change Dominik Csapak
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Dominik Csapak @ 2023-06-19  9:13 UTC (permalink / raw)
  To: pve-devel

the 'errors' property changed to 'checks' so we have to adapt here too

Signed-off-by: Dominik Csapak <d.csapak@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





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-06-19 11:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-19  9:13 [pve-devel] [PATCH manager 1/5] ui: fix pci map selector status column Dominik Csapak
2023-06-19  9:13 ` [pve-devel] [PATCH manager 2/5] ui: multi pci selector: reset the selection properly on nodename change Dominik Csapak
2023-06-19  9:13 ` [pve-devel] [PATCH manager 3/5] ui: multi pci selector: indent functions multifunction devices Dominik Csapak
2023-06-19  9:13 ` [pve-devel] [PATCH manager 4/5] ui: pci map edit: make top fields more clear Dominik Csapak
2023-06-19  9:13 ` [pve-devel] [PATCH manager 5/5] ui: resource mappings: remove border and add resize handle Dominik Csapak
2023-06-19 11:27 ` [pve-devel] applied-series: [PATCH manager 1/5] ui: fix pci map selector status column Thomas Lamprecht

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal