[pve-devel] applied: [RFC manager] add help button to 'My Settings' window

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Nov 14 15:48:10 CET 2018


On 11/13/18 1:48 PM, David Limbeck wrote:
> link to 'gui_my_settings' in docs
> 
> Signed-off-by: David Limbeck <d.limbeck at proxmox.com>
> ---
>  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();
> -
>      }
>  });
> 

applied, thanks!




More information about the pve-devel mailing list