From: Dominik Csapak <d.csapak@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH manager 1/5] ui: fix pci map selector status column
Date: Mon, 19 Jun 2023 11:13:30 +0200 [thread overview]
Message-ID: <20230619091334.1715659-1-d.csapak@proxmox.com> (raw)
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
next reply other threads:[~2023-06-19 9:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-19 9:13 Dominik Csapak [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230619091334.1715659-1-d.csapak@proxmox.com \
--to=d.csapak@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox