]> git.proxmox.com Git - pmg-gui.git/blobdiff - js/ServerStatus.js
objects: use font-weight for bold text
[pmg-gui.git] / js / ServerStatus.js
index 04ae0df914cd0b00d6ebe4f26322c141847e268a..f7d79e90ee03d3540ab1b65df06027b60f9e9004 100644 (file)
@@ -46,6 +46,15 @@ Ext.define('PMG.ServerStatus', {
     },
 
     tbar: [
+       {
+           text: gettext('Package versions'),
+           iconCls: 'fa fa-gift',
+           handler: () => Proxmox.Utils.checked_command(() => {
+               Ext.create('Proxmox.window.PackageVersions', {
+                   autoShow: true,
+               });
+           }),
+       },
        {
            text: gettext("Console"),
            iconCls: 'fa fa-terminal',
@@ -162,5 +171,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);
+       });
    },
 });