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:
parent
326c835e60
commit
66bbd4200c
@ -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'),
|
||||
},
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user