[pbs-devel] [PATCH proxmox-backup] ui: only add delete parameter on token edit, not when creating tokens
Shannon Sterz
s.sterz at proxmox.com
Thu Apr 3 17:03:44 CEST 2025
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 at proxmox.com>
---
www/window/TokenEdit.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/www/window/TokenEdit.js b/www/window/TokenEdit.js
index d1c5555b..dfa58919 100644
--- a/www/window/TokenEdit.js
+++ b/www/window/TokenEdit.js
@@ -68,8 +68,10 @@ Ext.define('PBS.window.TokenEdit', {
{
xtype: 'proxmoxtextfield',
name: 'comment',
- deleteEmpty: true,
fieldLabel: gettext('Comment'),
+ cbind: {
+ deleteEmpty: "{!isCreate}"
+ },
},
],
},
--
2.39.5
More information about the pbs-devel
mailing list