[pve-devel] [PATCH manager 1/3] InfoWidget.js: make printBar toggleable at runtime

Dominik Csapak d.csapak at proxmox.com
Fri Jan 26 13:36:23 CET 2018


we add a setPrintBar function, where we can make the
progressbar visible/hide it at runtime

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

diff --git a/www/manager6/panel/InfoWidget.js b/www/manager6/panel/InfoWidget.js
index 3152b6fa..fe1f87d3 100644
--- a/www/manager6/panel/InfoWidget.js
+++ b/www/manager6/panel/InfoWidget.js
@@ -36,6 +36,12 @@ Ext.define('PVE.widget.Info',{
     warningThreshold: 0.6,
     criticalThreshold: 0.9,
 
+    setPrintBar: function(enable) {
+	var me = this;
+	me.printBar = enable;
+	me.getComponent('progress').setVisible(enable);
+    },
+
     updateValue: function(text, usage) {
 	var me = this;
 	var label = me.getComponent('label');
-- 
2.11.0





More information about the pve-devel mailing list