all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH widget-toolkit] fix #5074: notify: sendmail: smtp: fix mailto/mailto-user parameter deletion
@ 2024-01-04 12:38 Fiona Ebner
  2024-01-04 13:03 ` Lukas Wagner
  2024-01-05  9:35 ` [pve-devel] applied: " Fiona Ebner
  0 siblings, 2 replies; 3+ messages in thread
From: Fiona Ebner @ 2024-01-04 12:38 UTC (permalink / raw)
  To: pve-devel

by doing a cbind of isCreate to the top-level widget so that cbind in
the nested widgets for deleteEmpty works.

In the GUI, when a sendmail/smtp target is edited and either
'Additional Recipients' or 'Recipients' is completely removed (only
possible if the other field contains a value), parameter deletion did
not work properly. After applying the changes, the old value would
still be in place.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
---
 src/panel/EmailRecipientPanel.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/panel/EmailRecipientPanel.js b/src/panel/EmailRecipientPanel.js
index b2bc03c..da64f45 100644
--- a/src/panel/EmailRecipientPanel.js
+++ b/src/panel/EmailRecipientPanel.js
@@ -19,6 +19,9 @@ Ext.define('Proxmox.panel.EmailRecipientPanel', {
 	{
 	    layout: 'anchor',
 	    border: false,
+	    cbind: {
+		isCreate: '{isCreate}',
+	    },
 	    items: [
 		{
 		    xtype: 'pmxUserSelector',
-- 
2.39.2





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [pve-devel] [PATCH widget-toolkit] fix #5074: notify: sendmail: smtp: fix mailto/mailto-user parameter deletion
  2024-01-04 12:38 [pve-devel] [PATCH widget-toolkit] fix #5074: notify: sendmail: smtp: fix mailto/mailto-user parameter deletion Fiona Ebner
@ 2024-01-04 13:03 ` Lukas Wagner
  2024-01-05  9:35 ` [pve-devel] applied: " Fiona Ebner
  1 sibling, 0 replies; 3+ messages in thread
From: Lukas Wagner @ 2024-01-04 13:03 UTC (permalink / raw)
  To: Proxmox VE development discussion, Fiona Ebner



On 1/4/24 13:38, Fiona Ebner wrote:
> by doing a cbind of isCreate to the top-level widget so that cbind in
> the nested widgets for deleteEmpty works.
> 
> In the GUI, when a sendmail/smtp target is edited and either
> 'Additional Recipients' or 'Recipients' is completely removed (only
> possible if the other field contains a value), parameter deletion did
> not work properly. After applying the changes, the old value would
> still be in place.
> 

I can confirm that this patch works as expected and fixes the issue.

Tested-by: Lukas Wagner <l.wagner@proxmox.com>
Reviewed-by: Lukas Wagner <l.wagner@proxmox.com>


-- 
- Lukas




^ permalink raw reply	[flat|nested] 3+ messages in thread

* [pve-devel] applied: [PATCH widget-toolkit] fix #5074: notify: sendmail: smtp: fix mailto/mailto-user parameter deletion
  2024-01-04 12:38 [pve-devel] [PATCH widget-toolkit] fix #5074: notify: sendmail: smtp: fix mailto/mailto-user parameter deletion Fiona Ebner
  2024-01-04 13:03 ` Lukas Wagner
@ 2024-01-05  9:35 ` Fiona Ebner
  1 sibling, 0 replies; 3+ messages in thread
From: Fiona Ebner @ 2024-01-05  9:35 UTC (permalink / raw)
  To: pve-devel

Am 04.01.24 um 13:38 schrieb Fiona Ebner:
> by doing a cbind of isCreate to the top-level widget so that cbind in
> the nested widgets for deleteEmpty works.
> 
> In the GUI, when a sendmail/smtp target is edited and either
> 'Additional Recipients' or 'Recipients' is completely removed (only
> possible if the other field contains a value), parameter deletion did
> not work properly. After applying the changes, the old value would
> still be in place.
> 
> Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>

applied with Lukas' T-b and R-b tags, thanks for those!




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-01-05  9:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-04 12:38 [pve-devel] [PATCH widget-toolkit] fix #5074: notify: sendmail: smtp: fix mailto/mailto-user parameter deletion Fiona Ebner
2024-01-04 13:03 ` Lukas Wagner
2024-01-05  9:35 ` [pve-devel] applied: " Fiona Ebner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal