* [pve-devel] [PATCH manager] ui: tag: only set lowercased tags
@ 2025-03-19 8:58 Maximiliano Sandoval
2025-03-19 9:05 ` Dominik Csapak
0 siblings, 1 reply; 2+ messages in thread
From: Maximiliano Sandoval @ 2025-03-19 8:58 UTC (permalink / raw)
To: pve-devel
At the moment, the color of the preview tag won't match the final tag
once it is added if the tag contained uppercase letters. With this patch
the color in the tag being created will match the color of the final tag
added to a guest.
Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
---
www/manager6/form/Tag.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/www/manager6/form/Tag.js b/www/manager6/form/Tag.js
index 6b1d6aa55..399644899 100644
--- a/www/manager6/form/Tag.js
+++ b/www/manager6/form/Tag.js
@@ -181,6 +181,7 @@ Ext.define('Proxmox.form.Tag', {
setTag: function(tag) {
let me = this;
let oldtag = me.tag;
+ tag = tag.toLowerCase();
me.tag = tag;
clearTimeout(me.colorTimeout);
--
2.39.5
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [pve-devel] [PATCH manager] ui: tag: only set lowercased tags
2025-03-19 8:58 [pve-devel] [PATCH manager] ui: tag: only set lowercased tags Maximiliano Sandoval
@ 2025-03-19 9:05 ` Dominik Csapak
0 siblings, 0 replies; 2+ messages in thread
From: Dominik Csapak @ 2025-03-19 9:05 UTC (permalink / raw)
To: pve-devel
On 3/19/25 09:58, Maximiliano Sandoval wrote:
> At the moment, the color of the preview tag won't match the final tag
> once it is added if the tag contained uppercase letters. With this patch
> the color in the tag being created will match the color of the final tag
> added to a guest.
>
> Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
> ---
> www/manager6/form/Tag.js | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/www/manager6/form/Tag.js b/www/manager6/form/Tag.js
> index 6b1d6aa55..399644899 100644
> --- a/www/manager6/form/Tag.js
> +++ b/www/manager6/form/Tag.js
> @@ -181,6 +181,7 @@ Ext.define('Proxmox.form.Tag', {
> setTag: function(tag) {
> let me = this;
> let oldtag = me.tag;
> + tag = tag.toLowerCase();
> me.tag = tag;
>
> clearTimeout(me.colorTimeout);
this would only be valid if we could not have case sensitive tags,
but this is configurable in the datacenter options. So what we want here
is to make behavior dependent on the case-sensitivity setting.
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-03-19 9:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-19 8:58 [pve-devel] [PATCH manager] ui: tag: only set lowercased tags Maximiliano Sandoval
2025-03-19 9:05 ` Dominik Csapak
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