[pve-devel] [PATCH v2 widget-toolkit 2/2] zfs detail: hide the pool itself in tree view
    Fabian Ebner 
    f.ebner at proxmox.com
       
    Fri Sep 10 13:45:37 CEST 2021
    
    
  
and show the overall health in the grid instead.
Signed-off-by: Fabian Ebner <f.ebner at proxmox.com>
---
New in v2.
 src/window/ZFSDetail.js | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/window/ZFSDetail.js b/src/window/ZFSDetail.js
index 5606ca0..9ad46b8 100644
--- a/src/window/ZFSDetail.js
+++ b/src/window/ZFSDetail.js
@@ -78,6 +78,10 @@ Ext.define('Proxmox.window.ZFSDetail', {
 		nodename: '{nodename}',
 	    },
 	    rows: {
+		state: {
+		    header: gettext('Health'),
+		    renderer: Proxmox.Utils.render_zfs_health,
+		},
 		scan: {
 		    header: gettext('Scan'),
 		},
@@ -98,7 +102,8 @@ Ext.define('Proxmox.window.ZFSDetail', {
 	    title: gettext('Devices'),
 	    stateful: true,
 	    stateId: 'grid-node-zfsstatus',
-	    rootVisible: true,
+	    // the root is the pool itself and the information is shown by the grid
+	    rootVisible: false,
 	    fields: ['name', 'status',
 		{
 		    type: 'string',
-- 
2.30.2
    
    
More information about the pve-devel
mailing list