]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
ui: disks: add 'mounted' column
authorHannes Laimer <h.laimer@proxmox.com>
Wed, 8 Jun 2022 07:10:00 +0000 (07:10 +0000)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 15 Jun 2022 08:27:18 +0000 (10:27 +0200)
Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
src/panel/DiskList.js

index eb8b1a870d656882933a74c6e648465dd7e8be42..76d92cdf170203eba23b7b2f70017c9996be77bb 100644 (file)
@@ -35,7 +35,7 @@ Ext.define('pmx-disk-list', {
                return undefined;
            },
        },
-       'vendor', 'model', 'serial', 'rpm', 'type', 'wearout', 'health',
+       'vendor', 'model', 'serial', 'rpm', 'type', 'wearout', 'health', 'mounted',
     ],
     idProperty: 'devpath',
 });
@@ -302,6 +302,13 @@ Ext.define('Proxmox.DiskList', {
            renderer: Ext.String.htmlEncode,
            dataIndex: 'status',
        },
+       {
+           header: 'Mounted',
+           width: 60,
+           align: 'right',
+           renderer: Proxmox.Utils.format_boolean,
+           dataIndex: 'mounted',
+       },
        {
            header: 'Wearout',
            width: 90,