]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
zfs detail: hide the pool itself in tree view
authorFabian Ebner <f.ebner@proxmox.com>
Fri, 10 Sep 2021 11:45:37 +0000 (13:45 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 13 Jan 2022 11:50:49 +0000 (12:50 +0100)
and show the overall health in the grid instead.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
src/window/ZFSDetail.js

index 5606ca05f6879b37491abc4c784a81e52fc92a08..9ad46b84c534cc58187f0be2e8f8bc7580ee1e8b 100644 (file)
@@ -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',