public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Dominik Csapak <d.csapak@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH widget-toolkit] panel/DiskList: return empty text for status on partitions
Date: Fri,  5 Mar 2021 12:03:54 +0100	[thread overview]
Message-ID: <20210305110354.16556-1-d.csapak@proxmox.com> (raw)

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





             reply	other threads:[~2021-03-05 11:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-05 11:03 Dominik Csapak [this message]
2021-03-05 16:16 ` [pve-devel] applied: " 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=20210305110354.16556-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
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal