public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH v3 widget-toolkit 1/2] ui: SMART: fix eslint error / show correct value
@ 2023-02-24 14:40 Matthias Heiserer
  2023-02-24 14:40 ` [pve-devel] [PATCH v3 widget-toolkit 2/2] ui: SMART: rename Value to Raw Value Matthias Heiserer
  2023-03-14 14:27 ` [pve-devel] applied: [PATCH v3 widget-toolkit 1/2] ui: SMART: fix eslint error / show correct value Thomas Lamprecht
  0 siblings, 2 replies; 3+ messages in thread
From: Matthias Heiserer @ 2023-02-24 14:40 UTC (permalink / raw)
  To: pve-devel

Signed-off-by: Matthias Heiserer <m.heiserer@proxmox.com>
---

Changes from v2:
Calculate the field in a different way...

Thanks to dominik for simplifying/fixing the logic!

 src/window/DiskSmart.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/window/DiskSmart.js b/src/window/DiskSmart.js
index b538ea1..3824175 100644
--- a/src/window/DiskSmart.js
+++ b/src/window/DiskSmart.js
@@ -159,12 +159,12 @@ Ext.define('Proxmox.window.DiskSmart', {
 	    {
 		name: 'real-value',
 		// FIXME remove with next major release (PBS 3.0)
-		calculate: data => (data.normalized ?? false) ? data.raw : data.value,
+		calculate: data => data.raw ?? data.value,
 	    },
 	    {
 		name: 'real-normalized',
 		// FIXME remove with next major release (PBS 3.0)
-		calculate: data => data.normalized ?? data.raw,
+		calculate: data => data.normalized ?? data.value,
 	    },
 	],
 	idProperty: 'name',
-- 
2.30.2





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

end of thread, other threads:[~2023-03-14 14:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-24 14:40 [pve-devel] [PATCH v3 widget-toolkit 1/2] ui: SMART: fix eslint error / show correct value Matthias Heiserer
2023-02-24 14:40 ` [pve-devel] [PATCH v3 widget-toolkit 2/2] ui: SMART: rename Value to Raw Value Matthias Heiserer
2023-03-14 14:27 ` [pve-devel] applied: [PATCH v3 widget-toolkit 1/2] ui: SMART: fix eslint error / show correct value 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