[pbs-devel] [PATCH proxmox-backup] ui: RemoteEdit: only send delete on update

Dominik Csapak d.csapak at proxmox.com
Fri Oct 2 10:32:23 CEST 2020


the create api call does not understand the 'delete' paramter, so
send it only on update

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/window/RemoteEdit.js | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/www/window/RemoteEdit.js b/www/window/RemoteEdit.js
index 2296c89a..56a248e0 100644
--- a/www/window/RemoteEdit.js
+++ b/www/window/RemoteEdit.js
@@ -82,7 +82,9 @@ Ext.define('PBS.window.RemoteEdit', {
 	    {
 		xtype: 'proxmoxtextfield',
 		hidden: true,
-		deleteEmpty: true,
+		cbind: {
+		    deleteEmpty: '{!isCreate}',
+		},
 		name: 'port',
 	    },
 	],
@@ -110,13 +112,17 @@ Ext.define('PBS.window.RemoteEdit', {
 	    {
 		xtype: 'proxmoxtextfield',
 		name: 'fingerprint',
-		deleteEmpty: true,
+		cbind: {
+		    deleteEmpty: '{!isCreate}',
+		},
 		fieldLabel: gettext('Fingerprint'),
 	    },
 	    {
 		xtype: 'proxmoxtextfield',
 		name: 'comment',
-		deleteEmpty: true,
+		cbind: {
+		    deleteEmpty: '{!isCreate}',
+		},
 		fieldLabel: gettext('Comment'),
 	    },
 	],
-- 
2.20.1






More information about the pbs-devel mailing list