[pve-devel] [PATCH widget-toolkit] panel/DiskList: return empty text for status on partitions

Dominik Csapak d.csapak at proxmox.com
Fri Mar 5 12:03:54 CET 2021


instead of returning 'unknown'

Signed-off-by: Dominik Csapak <d.csapak at 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






More information about the pve-devel mailing list