From 75ceae787d801ca09120258d824ce99bc62abc87 Mon Sep 17 00:00:00 2001 From: David Limbeck Date: Tue, 13 Nov 2018 13:48:26 +0100 Subject: [PATCH] add help button to 'My Settings' window link to 'gui_my_settings' in docs Signed-off-by: David Limbeck --- www/manager6/window/Settings.js | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/www/manager6/window/Settings.js b/www/manager6/window/Settings.js index ef9dc021..1a4d8599 100644 --- a/www/manager6/window/Settings.js +++ b/www/manager6/window/Settings.js @@ -8,12 +8,20 @@ Ext.define('PVE.window.Settings', { bodyPadding: 10, resizable: false, - buttons: [{ - text: gettext('Close'), - handler: function() { - this.up('window').close(); + buttons: [ + { + xtype: 'proxmoxHelpButton', + onlineHelp: 'gui_my_settings', + hidden: false + }, + '->', + { + text: gettext('Close'), + handler: function() { + this.up('window').close(); + } } - }], + ], layout: { type: 'hbox', @@ -317,6 +325,5 @@ Ext.define('PVE.window.Settings', { onShow: function() { var me = this; me.callParent(); - } });