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:
Shannon Sterz 2025-04-03 17:03:44 +02:00 committed by Thomas Lamprecht
parent f09f2e0d9e
commit d49a27ede8

View File

@ -68,8 +68,10 @@ Ext.define('PBS.window.TokenEdit', {
{
xtype: 'proxmoxtextfield',
name: 'comment',
deleteEmpty: true,
fieldLabel: gettext('Comment'),
cbind: {
deleteEmpty: "{!isCreate}"
},
},
],
},