]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
fix #5074: notify: sendmail: smtp: fix mailto/mailto-user parameter deletion
authorFiona Ebner <f.ebner@proxmox.com>
Thu, 4 Jan 2024 12:29:34 +0000 (13:29 +0100)
committerFiona Ebner <f.ebner@proxmox.com>
Fri, 5 Jan 2024 09:33:26 +0000 (10:33 +0100)
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>
Tested-by: Lukas Wagner <l.wagner@proxmox.com>
Reviewed-by: Lukas Wagner <l.wagner@proxmox.com>
src/panel/EmailRecipientPanel.js

index b2bc03c997b24f8aee2f0e20dd8ceb57b187f852..da64f45d72788f4d969444fcc4a12fb89f68517c 100644 (file)
@@ -19,6 +19,9 @@ Ext.define('Proxmox.panel.EmailRecipientPanel', {
        {
            layout: 'anchor',
            border: false,
+           cbind: {
+               isCreate: '{isCreate}',
+           },
            items: [
                {
                    xtype: 'pmxUserSelector',