From c621e29b5e112c1a8ace876935fd74bc6b7ec0f2 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Mon, 19 Jul 2021 17:53:54 +0200 Subject: [PATCH] server status: add button to show package version window Signed-off-by: Thomas Lamprecht --- debian/control | 2 +- js/ServerStatus.js | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/debian/control b/debian/control index 4c9bf5d..9f976f3 100644 --- a/debian/control +++ b/debian/control @@ -14,6 +14,6 @@ Depends: fonts-font-awesome, libjs-extjs (>= 6.0.1), libjs-framework7 (>= 4.1.1), pmg-i18n, - proxmox-widget-toolkit (>= 3.3-3), + proxmox-widget-toolkit (>= 3.3-5), Description: Proxmox Mail Gateway web interface Graphical user interface for the Proxmox Mail Gateway. diff --git a/js/ServerStatus.js b/js/ServerStatus.js index 0df5517..f7d79e9 100644 --- a/js/ServerStatus.js +++ b/js/ServerStatus.js @@ -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',