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',
|
xtype: 'proxmoxtextfield',
|
||||||
hidden: true,
|
hidden: true,
|
||||||
deleteEmpty: true,
|
cbind: {
|
||||||
|
deleteEmpty: '{!isCreate}',
|
||||||
|
},
|
||||||
name: 'port',
|
name: 'port',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
@ -110,13 +112,17 @@ Ext.define('PBS.window.RemoteEdit', {
|
|||||||
{
|
{
|
||||||
xtype: 'proxmoxtextfield',
|
xtype: 'proxmoxtextfield',
|
||||||
name: 'fingerprint',
|
name: 'fingerprint',
|
||||||
deleteEmpty: true,
|
cbind: {
|
||||||
|
deleteEmpty: '{!isCreate}',
|
||||||
|
},
|
||||||
fieldLabel: gettext('Fingerprint'),
|
fieldLabel: gettext('Fingerprint'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
xtype: 'proxmoxtextfield',
|
xtype: 'proxmoxtextfield',
|
||||||
name: 'comment',
|
name: 'comment',
|
||||||
deleteEmpty: true,
|
cbind: {
|
||||||
|
deleteEmpty: '{!isCreate}',
|
||||||
|
},
|
||||||
fieldLabel: gettext('Comment'),
|
fieldLabel: gettext('Comment'),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user