]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: ceph/osd: reintroduce Used column
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 11 Jul 2019 07:45:26 +0000 (09:45 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 11 Jul 2019 12:16:11 +0000 (14:16 +0200)
previous commit 76235ae132c69898048c1f7579e7da40adbd7a6e accidentally
removed this column during refactoring, let's reintroduce it again.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/ceph/OSD.js

index b7c884753bbb1ce57c50d79a05e072bba3d31034..e9c44ed8326fbaaa24870c8a53e931d4b6345f97 100644 (file)
@@ -506,11 +506,28 @@ Ext.define('PVE.node.CephOsdTree', {
            width: 90
        },
        {
-           text: gettext('Total'),
-           dataIndex: 'total_space',
-           align: 'right',
-           renderer: 'render_osd_size',
-           width: 100
+           header: gettext('Used'),
+           columns: [
+               {
+                   text: '%',
+                   dataIndex: 'percent_used',
+                   align: 'right',
+                   renderer: function(value, metaData, rec) {
+                       if (rec.data.type !== 'osd') {
+                           return '';
+                       }
+                       return Ext.util.Format.number(value, '0.00');
+                   },
+                   width: 80
+               },
+               {
+                   text: gettext('Total'),
+                   dataIndex: 'total_space',
+                   align: 'right',
+                   renderer: 'render_osd_size',
+                   width: 100
+               }
+           ]
        },
        {
            header: gettext('Latency (ms)'),