mirror of
https://git.proxmox.com/git/proxmox-backup
synced 2025-04-28 16:58:16 +00:00
ui: only add delete parameter on token edit, not when creating tokens
otherwise tokens without comments can no longer be created as the api
will reject the additional `delete` parameter. this bug was introduced
by commit:
3fdf876
: api: token: make comment deletable
Signed-off-by: Shannon Sterz <s.sterz@proxmox.com>
This commit is contained in:
parent
f09f2e0d9e
commit
d49a27ede8
@ -68,8 +68,10 @@ Ext.define('PBS.window.TokenEdit', {
|
||||
{
|
||||
xtype: 'proxmoxtextfield',
|
||||
name: 'comment',
|
||||
deleteEmpty: true,
|
||||
fieldLabel: gettext('Comment'),
|
||||
cbind: {
|
||||
deleteEmpty: "{!isCreate}"
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user