[pve-devel] [PATCH manager 2/5] add a 'bootdisk size' entry to the status view

Dominik Csapak d.csapak at proxmox.com
Wed Jun 15 15:13:24 CEST 2016


to show the size of the current bootdisk of the vm/container

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/lxc/StatusView.js  | 1 +
 www/manager6/qemu/StatusView.js | 1 +
 2 files changed, 2 insertions(+)

diff --git a/www/manager6/lxc/StatusView.js b/www/manager6/lxc/StatusView.js
index 1d66495..46aed9e 100644
--- a/www/manager6/lxc/StatusView.js
+++ b/www/manager6/lxc/StatusView.js
@@ -65,6 +65,7 @@ Ext.define('PVE.lxc.StatusView', {
 	    maxmem: { visible: false },
 	    swap: { header: gettext('VSwap usage'), required: true,  renderer: render_swap },
 	    maxswap: { visible: false },
+	    maxdisk: { header: gettext('Bootdisk size'), renderer: PVE.Utils.render_size, required: true},
 	    uptime: { header: gettext('Uptime'), required: true, renderer: PVE.Utils.render_uptime },
 	    ha: { header: gettext('Managed by HA'), required: true, renderer: PVE.Utils.format_ha }
 	};
diff --git a/www/manager6/qemu/StatusView.js b/www/manager6/qemu/StatusView.js
index 340c358..3a2ac93 100644
--- a/www/manager6/qemu/StatusView.js
+++ b/www/manager6/qemu/StatusView.js
@@ -47,6 +47,7 @@ Ext.define('PVE.qemu.StatusView', {
 	    cpus: { visible: false },
 	    mem: { header: gettext('Memory usage'), required: true,  renderer: render_mem },
 	    maxmem: { visible: false },
+	    maxdisk: { header: gettext('Bootdisk size'), renderer: PVE.Utils.render_size, required: true},
 	    uptime: { header: gettext('Uptime'), required: true, renderer: PVE.Utils.render_uptime },
 	    ha: { header: gettext('Managed by HA'), required: true, renderer: PVE.Utils.format_ha }
 	};
-- 
2.1.4




More information about the pve-devel mailing list