public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Dominik Csapak <d.csapak@proxmox.com>
To: Proxmox Backup Server development discussion
	<pbs-devel@lists.proxmox.com>,
	Hannes Laimer <h.laimer@proxmox.com>,
	Thomas Lamprecht <t.lamprecht@proxmox.com>
Subject: Re: [pbs-devel] [PATCH proxmox-backup 4/4] ui: add new options tab under configuration
Date: Thu, 16 Dec 2021 11:04:07 +0100	[thread overview]
Message-ID: <7498992c-52e1-7a65-c85c-50bd1c5aa955@proxmox.com> (raw)
In-Reply-To: <20211214124408.17003-5-h.laimer@proxmox.com>

if i remember correctly, thomas did not like the
'configuration' -> 'options' approach (too generic)
or did that change @thomas?

(also the 'general' panel does make this not better imho)

On 12/14/21 13:44, Hannes Laimer wrote:
> ... and add email-from + move http-proxy there
> 
> Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
> ---
>   www/SystemConfiguration.js   | 25 +++++++++++++++++++++++--
>   www/config/NodeOptionView.js |  9 +++++++++
>   2 files changed, 32 insertions(+), 2 deletions(-)
> 
> diff --git a/www/SystemConfiguration.js b/www/SystemConfiguration.js
> index 86371193..ac24bff9 100644
> --- a/www/SystemConfiguration.js
> +++ b/www/SystemConfiguration.js
> @@ -63,9 +63,25 @@ Ext.define('PBS.SystemConfiguration', {
>   		    title: gettext('Webauthn'),
>   		    xtype: 'pbsWebauthnConfigView',
>   		},
> +	    ],
> +	},
> +	{
> +	    title: gettext('Options'),
> +	    itemId: 'options',
> +	    xtype: 'panel',
> +	    layout: {
> +		type: 'vbox',
> +		align: 'stretch',
> +		multi: true,
> +	    },
> +	    defaults: {
> +		collapsible: true,
> +		animCollapse: false,
> +		margin: '10 10 0 10',
> +	    },
> +	    items: [
>   		{
> -		    // FIXME: this is only a semi-OK place as long as there's only the http-proxy in there
> -		    title: gettext('HTTP proxy'),
> +		    title: gettext('General'),
>   		    xtype: 'pbsNodeOptionView',
>   		},
>   	    ],
> @@ -86,6 +102,11 @@ Ext.define('PBS.SystemConfiguration', {
>   	Ext.Array.forEach(authentication.query(), function(item) {
>   	    item.relayEvents(authentication, ['activate', 'deactivate', 'destroy']);
>   	});
> +
> +	let options = me.getComponent('options');
> +	Ext.Array.forEach(options.query(), function(item) {
> +	    item.relayEvents(options, ['activate', 'deactivate', 'destroy']);
> +	});
>       },
>   });
>   
> diff --git a/www/config/NodeOptionView.js b/www/config/NodeOptionView.js
> index 55271a91..64f3d792 100644
> --- a/www/config/NodeOptionView.js
> +++ b/www/config/NodeOptionView.js
> @@ -34,6 +34,15 @@ Ext.define('PBS.NodeOptionView', {
>   	    deleteEmpty: true,
>   	    onlineHelp: 'node_options_http_proxy',
>   	},
> +	{
> +	    xtype: 'text',
> +	    name: 'email-from',
> +	    defaultValue: gettext('root@$hostname'),
> +	    text: gettext('Email from address'),
> +	    vtype: 'proxmoxMail',
> +	    deleteEmpty: true,
> +	},
> +
>       ],
>   
>       initComponent: function() {





      reply	other threads:[~2021-12-16 10:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-14 12:44 [pbs-devel] [PATCH proxmox-backup 0/4] close #3162: add options to configure mail_from address Hannes Laimer
2021-12-14 12:44 ` [pbs-devel] [PATCH proxmox-backup 1/4] config: add email-from to NodeConfig Hannes Laimer
2021-12-14 12:44 ` [pbs-devel] [PATCH proxmox-backup 2/4] api2: make email-from updatable Hannes Laimer
2021-12-14 12:44 ` [pbs-devel] [PATCH proxmox-backup 3/4] server: use configured email-from for sending mail Hannes Laimer
2021-12-16  9:59   ` Dominik Csapak
2021-12-14 12:44 ` [pbs-devel] [PATCH proxmox-backup 4/4] ui: add new options tab under configuration Hannes Laimer
2021-12-16 10:04   ` Dominik Csapak [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7498992c-52e1-7a65-c85c-50bd1c5aa955@proxmox.com \
    --to=d.csapak@proxmox.com \
    --cc=h.laimer@proxmox.com \
    --cc=pbs-devel@lists.proxmox.com \
    --cc=t.lamprecht@proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal