]> git.proxmox.com Git - pve-manager.git/blobdiff - www/manager6/panel/GuestStatusView.js
fix #4455: ui: config panel: add missing onlineHelp mapping for SDN type
[pve-manager.git] / www / manager6 / panel / GuestStatusView.js
index 8dab4c19b28c8d0bd77f800be14f0edd0408b0d7..8db1f492c37330f81648170bdb4b8fa5a9169135 100644 (file)
@@ -1,10 +1,8 @@
 Ext.define('PVE.panel.GuestStatusView', {
-    extend: 'PVE.panel.StatusView',
+    extend: 'Proxmox.panel.StatusView',
     alias: 'widget.pveGuestStatusView',
     mixins: ['Proxmox.Mixin.CBind'],
 
-    height: 300,
-
     cbindData: function(initialConfig) {
        var me = this;
        return {
@@ -19,7 +17,7 @@ Ext.define('PVE.panel.GuestStatusView', {
     },
 
     defaults: {
-       xtype: 'pveInfoWidget',
+       xtype: 'pmxInfoWidget',
        padding: '2 25',
     },
     items: [
@@ -52,7 +50,6 @@ Ext.define('PVE.panel.GuestStatusView', {
            renderer: PVE.Utils.format_ha,
        },
        {
-           xtype: 'pveInfoWidget',
            itemId: 'node',
            iconCls: 'fa fa-building fa-fw',
            title: gettext('Node'),
@@ -67,25 +64,24 @@ Ext.define('PVE.panel.GuestStatusView', {
        },
        {
            itemId: 'cpu',
-           iconCls: 'fa fa-fw pve-itype-icon-processor pve-icon',
+           iconCls: 'fa fa-fw pmx-itype-icon-processor pmx-icon',
            title: gettext('CPU usage'),
            valueField: 'cpu',
            maxField: 'cpus',
-           renderer: PVE.Utils.render_cpu_usage,
+           renderer: Proxmox.Utils.render_cpu_usage,
            // in this specific api call
            // we already have the correct value for the usage
            calculate: Ext.identityFn,
        },
        {
            itemId: 'memory',
-           iconCls: 'fa fa-fw pve-itype-icon-memory pve-icon',
+           iconCls: 'fa fa-fw pmx-itype-icon-memory pmx-icon',
            title: gettext('Memory usage'),
            valueField: 'mem',
            maxField: 'maxmem',
        },
        {
            itemId: 'swap',
-           xtype: 'pveInfoWidget',
            iconCls: 'fa fa-refresh fa-fw',
            title: gettext('SWAP usage'),
            valueField: 'swap',
@@ -106,9 +102,9 @@ Ext.define('PVE.panel.GuestStatusView', {
                var me = this;
                me.setPrintBar(used > 0);
                if (used === 0) {
-                   return PVE.Utils.render_size(max);
+                   return Proxmox.Utils.render_size(max);
                } else {
-                   return PVE.Utils.render_size_usage(used, max);
+                   return Proxmox.Utils.render_size_usage(used, max);
                }
            },
        },