ServerStatus: update column width on state change

when having the settings window (when implemented) open there

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2021-07-13 12:26:58 +02:00 committed by Thomas Lamprecht
parent 31f5e45885
commit 5958ebdf29

View File

@ -162,5 +162,13 @@ 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);
});
},
});