ui: RemoteEdit: only send delete on update

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

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2020-10-02 10:32:23 +02:00 committed by Thomas Lamprecht
parent 326c835e60
commit 66bbd4200c

View File

@ -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'),
},
],