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
if we add the 'disk' info to vms, it will magically work there then
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
{
itemId: 'rootfs',
title: gettext('Bootdisk size'),
- textField: 'maxdisk',
+ valueField: 'disk',
+ maxField: 'maxdisk',
printBar: false,
- renderer: PVE.Utils.render_size
+ renderer: function(used, max) {
+ var me = this;
+ me.setPrintBar(used > 0);
+ if (used === 0) {
+ return PVE.Utils.render_size(max);
+ } else {
+ return PVE.Utils.render_size_usage(used,max);
+ }
+ }
}
],