public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pbs-devel] [PATCH proxmox-backup] ui: only add delete parameter on token edit, not when creating tokens
@ 2025-04-03 15:03 Shannon Sterz
  2025-04-03 16:07 ` [pbs-devel] applied: " Thomas Lamprecht
  0 siblings, 1 reply; 2+ messages in thread
From: Shannon Sterz @ 2025-04-03 15:03 UTC (permalink / raw)
  To: pbs-devel

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>
---
 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



_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [pbs-devel] applied: [PATCH proxmox-backup] ui: only add delete parameter on token edit, not when creating tokens
  2025-04-03 15:03 [pbs-devel] [PATCH proxmox-backup] ui: only add delete parameter on token edit, not when creating tokens Shannon Sterz
@ 2025-04-03 16:07 ` Thomas Lamprecht
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Lamprecht @ 2025-04-03 16:07 UTC (permalink / raw)
  To: Proxmox Backup Server development discussion, Shannon Sterz

Am 03.04.25 um 17:03 schrieb Shannon Sterz:
> 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>
> ---
>  www/window/TokenEdit.js | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
>

applied, thanks!


_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-04-03 16:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-03 15:03 [pbs-devel] [PATCH proxmox-backup] ui: only add delete parameter on token edit, not when creating tokens Shannon Sterz
2025-04-03 16:07 ` [pbs-devel] applied: " Thomas Lamprecht

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal