[pbs-devel] [PATCH widget-toolkit] fix #4165: SMART: use changed columns from the API

Matthias Heiserer m.heiserer at proxmox.com
Thu Jul 21 12:45:59 CEST 2022


Makes the column names and the data name in the API consistent.

Signed-off-by: Matthias Heiserer <m.heiserer at proxmox.com>
---
 src/window/DiskSmart.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/window/DiskSmart.js b/src/window/DiskSmart.js
index 3c8040b..fc4b2cc 100644
--- a/src/window/DiskSmart.js
+++ b/src/window/DiskSmart.js
@@ -37,13 +37,13 @@ Ext.define('Proxmox.window.DiskSmart', {
 		    renderer: Ext.String.htmlEncode,
 		},
 		{
-		    text: gettext('Value'),
+		    text: gettext('Raw'),
 		    dataIndex: 'raw',
 		    renderer: Ext.String.htmlEncode,
 		},
 		{
 		    text: gettext('Normalized'),
-		    dataIndex: 'value',
+		    dataIndex: 'normalized',
 		    width: 60,
 		},
 		{
@@ -154,7 +154,7 @@ Ext.define('Proxmox.window.DiskSmart', {
     Ext.define('pmx-smart-attribute', {
 	extend: 'Ext.data.Model',
 	fields: [
-	    { name: 'id', type: 'number' }, 'name', 'value', 'worst', 'threshold', 'flags', 'fail', 'raw',
+	    { name: 'id', type: 'number' }, 'name', 'raw', 'worst', 'threshold', 'flags', 'fail', 'normalized',
 	],
 	idProperty: 'name',
     });
-- 
2.30.2






More information about the pbs-devel mailing list