From 79580cd0b663961a52a00f2db6ba0a88d0c95a5b Mon Sep 17 00:00:00 2001 From: Fabian Ebner Date: Fri, 10 Sep 2021 13:45:37 +0200 Subject: [PATCH] zfs detail: hide the pool itself in tree view and show the overall health in the grid instead. Signed-off-by: Fabian Ebner --- 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.39.2