[pve-devel] [PATCH manager] fix #1573: show bootdisk usage on container summary

Dominik Csapak d.csapak at proxmox.com
Tue Nov 28 14:06:07 CET 2017


we have the information, so show it
this does not change the output for vms, where we do not have
any information about disk usage at all

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/panel/GuestStatusView.js | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/www/manager6/panel/GuestStatusView.js b/www/manager6/panel/GuestStatusView.js
index 26415437..7cebe1b9 100644
--- a/www/manager6/panel/GuestStatusView.js
+++ b/www/manager6/panel/GuestStatusView.js
@@ -63,6 +63,12 @@ Ext.define('PVE.panel.GuestStatusView', {
 	{
 	    itemId: 'rootfs',
 	    title: gettext('Bootdisk size'),
+	    valueField: 'disk',
+	    maxField: 'maxdisk'
+	},
+	{
+	    itemId: 'bootdisk',
+	    title: gettext('Bootdisk size'),
 	    textField: 'maxdisk',
 	    printBar: false,
 	    renderer: PVE.Utils.render_size
@@ -88,6 +94,9 @@ Ext.define('PVE.panel.GuestStatusView', {
 	me.callParent();
 	if (me.pveSelNode.data.type !== 'lxc') {
 	    me.remove(me.getComponent('swap'));
+	    me.remove(me.getComponent('rootfs'));
+	} else {
+	    me.remove(me.getComponent('bootdisk'));
 	}
 	me.getComponent('node').updateValue(me.pveSelNode.data.node);
     }
-- 
2.11.0





More information about the pve-devel mailing list