public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH widget-toolkit] panel/DiskList: return empty text for status on partitions
@ 2021-03-05 11:03 Dominik Csapak
  2021-03-05 16:16 ` [pve-devel] applied: " Thomas Lamprecht
  0 siblings, 1 reply; 2+ messages in thread
From: Dominik Csapak @ 2021-03-05 11:03 UTC (permalink / raw)
  To: pve-devel

instead of returning 'unknown'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
 src/panel/DiskList.js | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/panel/DiskList.js b/src/panel/DiskList.js
index b67fbd1..cbf163c 100644
--- a/src/panel/DiskList.js
+++ b/src/panel/DiskList.js
@@ -11,6 +11,11 @@ Ext.define('pmx-disk-list', {
 		if (rec.data.health) {
 		    return rec.data.health;
 		}
+
+		if (rec.data.type === 'partition') {
+		    return "";
+		}
+
 		return Proxmox.Utils.unknownText;
 	    },
 	},
-- 
2.20.1





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

* [pve-devel] applied: [PATCH widget-toolkit] panel/DiskList: return empty text for status on partitions
  2021-03-05 11:03 [pve-devel] [PATCH widget-toolkit] panel/DiskList: return empty text for status on partitions Dominik Csapak
@ 2021-03-05 16:16 ` Thomas Lamprecht
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Lamprecht @ 2021-03-05 16:16 UTC (permalink / raw)
  To: Proxmox VE development discussion, Dominik Csapak

On 05.03.21 12:03, Dominik Csapak wrote:
> instead of returning 'unknown'
> 
> Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
> ---
>  src/panel/DiskList.js | 5 +++++
>  1 file changed, 5 insertions(+)
> 
>

applied, thanks!




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

end of thread, other threads:[~2021-03-05 16:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-05 11:03 [pve-devel] [PATCH widget-toolkit] panel/DiskList: return empty text for status on partitions Dominik Csapak
2021-03-05 16:16 ` [pve-devel] applied: " 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