[pve-devel] [PATCH manager 2/3] StatusView.js: call renderer in context of field
Dominik Csapak
d.csapak at proxmox.com
Fri Jan 26 13:36:24 CET 2018
so that we can access the field inside the renderer
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
www/manager6/panel/StatusView.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/www/manager6/panel/StatusView.js b/www/manager6/panel/StatusView.js
index 5d4e1ddd..57dfac8b 100644
--- a/www/manager6/panel/StatusView.js
+++ b/www/manager6/panel/StatusView.js
@@ -74,7 +74,7 @@ Ext.define('PVE.panel.StatusView', {
if (Ext.isFunction(field.calculate)) {
calculate = field.calculate;
}
- field.updateValue(renderer(used,max), calculate(used,max));
+ field.updateValue(renderer.call(field, used,max), calculate(used,max));
}
},
--
2.11.0
More information about the pve-devel
mailing list