mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-04 11:51:02 +00:00
StatusView.js: call renderer in context of field
so that we can access the field inside the renderer Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
4926300a26
commit
d3ecda1274
@ -74,7 +74,7 @@ Ext.define('PVE.panel.StatusView', {
|
|||||||
if (Ext.isFunction(field.calculate)) {
|
if (Ext.isFunction(field.calculate)) {
|
||||||
calculate = field.calculate;
|
calculate = field.calculate;
|
||||||
}
|
}
|
||||||
field.updateValue(renderer(used,max), calculate(used,max));
|
field.updateValue(renderer.call(field, used,max), calculate(used,max));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user