]> git.proxmox.com Git - pmg-gui.git/blobdiff - js/Dashboard.js
dashboard: move cluster resources to end to avoid "jumping"
[pmg-gui.git] / js / Dashboard.js
index 8f08f8c8b9594bda223ca3dd244511df84b053ad..4d8067b79b56b732629160468352e641f3a37106 100644 (file)
@@ -411,37 +411,6 @@ Ext.define('PMG.Dashboard', {
                },
            ],
        },
-       {
-           height: 250,
-           iconCls: 'fa fa-tasks',
-           title: gettext('Cluster Resources (average)'),
-           reference: 'clusterResources',
-           hidden: true,
-           bodyPadding: '0 20 0 20',
-           layout: {
-               type: 'hbox',
-               align: 'center',
-           },
-           defaults: {
-               xtype: 'proxmoxGauge',
-               spriteFontSize: '20px',
-               flex: 1,
-           },
-           items: [
-               {
-                   title: gettext('CPU'),
-                   reference: 'cpu',
-               },
-               {
-                   title: gettext('Memory'),
-                   reference: 'mem',
-               },
-               {
-                   title: gettext('Storage'),
-                   reference: 'hd',
-               },
-           ],
-       },
        {
            xtype: 'pmgNodeInfoPanel',
            reference: 'nodeInfo',
@@ -493,5 +462,36 @@ Ext.define('PMG.Dashboard', {
                ],
            }],
        },
+       {
+           height: 250,
+           iconCls: 'fa fa-tasks',
+           title: gettext('Cluster Resources (average)'),
+           reference: 'clusterResources',
+           hidden: true,
+           bodyPadding: '0 20 0 20',
+           layout: {
+               type: 'hbox',
+               align: 'center',
+           },
+           defaults: {
+               xtype: 'proxmoxGauge',
+               spriteFontSize: '20px',
+               flex: 1,
+           },
+           items: [
+               {
+                   title: gettext('CPU'),
+                   reference: 'cpu',
+               },
+               {
+                   title: gettext('Memory'),
+                   reference: 'mem',
+               },
+               {
+                   title: gettext('Storage'),
+                   reference: 'hd',
+               },
+           ],
+       },
     ],
 });