]> git.proxmox.com Git - pmg-gui.git/commitdiff
ServerStatus: update column width on state change
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 13 Jul 2021 10:26:58 +0000 (12:26 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 13 Jul 2021 12:28:01 +0000 (14:28 +0200)
when having the settings window (when implemented) open there

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
js/ServerStatus.js

index 04ae0df914cd0b00d6ebe4f26322c141847e268a..0df55173f1d04292b0ca327f0c4383cb7273f857 100644 (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);
+       });
    },
 });