]> git.proxmox.com Git - pmg-gui.git/commitdiff
ServerStatus: update panel columsn dynamically
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 13 Jul 2021 07:20:59 +0000 (09:20 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 13 Jul 2021 07:45:22 +0000 (09:45 +0200)
like we do in pve and pbs
for now the user cannot change the preferred columns and the default is 'auto'

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

index e91b3a7f187c2822614cd0e4d64bfc0ab60b5086..1fb42ea72615836c9a336819cea2bbc4cfe77176 100644 (file)
@@ -8,10 +8,11 @@ Ext.define('PMG.ServerStatus', {
 
     scrollable: true,
 
-    bodyPadding: '10 0 0 0',
+    bodyPadding: 5,
     defaults: {
        width: 700,
-       padding: '0 0 10 10',
+       padding: 5,
+       columnWidth: 1,
     },
 
     layout: 'column',
@@ -159,6 +160,9 @@ Ext.define('PMG.ServerStatus', {
                },
            ],
            listeners: {
+               resize: function(panel) {
+                   Proxmox.Utils.updateColumns(panel);
+               },
                activate: function() {
                    rrdstore.startUpdate();
                },