[pmg-devel] [PATCH pmg-gui 2/3] ServerStatus: update column width on state change

Dominik Csapak d.csapak at proxmox.com
Tue Jul 13 12:26:58 CEST 2021


when having the settings window (when implemented) open there

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 js/ServerStatus.js | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/js/ServerStatus.js b/js/ServerStatus.js
index ba34a65..f006080 100644
--- a/js/ServerStatus.js
+++ b/js/ServerStatus.js
@@ -172,6 +172,14 @@ Ext.define('PMG.ServerStatus', {
 	    },
 	});
 	me.callParent();
+
+	let sp = Ext.state.Manager.getProvider();
+	me.mon(sp, 'statechange', function(provider, key, value) {
+	    if (key !== 'summarycolumns') {
+		return;
+	    }
+	    Proxmox.Utils.updateColumnWidth(me);
+	});
    },
 });
 
-- 
2.30.2





More information about the pmg-devel mailing list