* [pve-devel] [PATCH widget-toolkit] RRDTypeSelector: fix extjs debug mode
@ 2025-12-05 14:34 Dominik Csapak
2025-12-05 15:15 ` Max R. Carrara
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Dominik Csapak @ 2025-12-05 14:34 UTC (permalink / raw)
To: pve-devel
For some reason, using a space separated list of classes in `itemCls`
breaks the extjs debug mode. This is seemingly allowed everywhere else,
so to fix it, simply apply the classes directly to the children
with 'default'.
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
src/form/RRDTypeSelector.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/form/RRDTypeSelector.js b/src/form/RRDTypeSelector.js
index bbb5d86..51ae23a 100644
--- a/src/form/RRDTypeSelector.js
+++ b/src/form/RRDTypeSelector.js
@@ -75,7 +75,9 @@ Ext.define('Proxmox.form.RRDTypeSelector', {
xtype: 'segmentedbutton',
allowMultiple: false,
allowToggle: true,
- itemCls: 'x-btn-default-toolbar-small proxmox-inline-button',
+ defautl: {
+ cls: 'x-btn-default-toolbar-small proxmox-inline-button',
+ },
items: [
{
text: gettext('Maximum'),
--
2.47.3
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [pve-devel] [PATCH widget-toolkit] RRDTypeSelector: fix extjs debug mode
2025-12-05 14:34 [pve-devel] [PATCH widget-toolkit] RRDTypeSelector: fix extjs debug mode Dominik Csapak
@ 2025-12-05 15:15 ` Max R. Carrara
2025-12-05 15:16 ` Thomas Lamprecht
2025-12-05 15:34 ` [pve-devel] applied: " Thomas Lamprecht
2 siblings, 0 replies; 4+ messages in thread
From: Max R. Carrara @ 2025-12-05 15:15 UTC (permalink / raw)
To: Proxmox VE development discussion
On Fri Dec 5, 2025 at 3:34 PM CET, Dominik Csapak wrote:
> For some reason, using a space separated list of classes in `itemCls`
> breaks the extjs debug mode. This is seemingly allowed everywhere else,
> so to fix it, simply apply the classes directly to the children
> with 'default'.
>
> Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
> ---
> src/form/RRDTypeSelector.js | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/src/form/RRDTypeSelector.js b/src/form/RRDTypeSelector.js
> index bbb5d86..51ae23a 100644
> --- a/src/form/RRDTypeSelector.js
> +++ b/src/form/RRDTypeSelector.js
> @@ -75,7 +75,9 @@ Ext.define('Proxmox.form.RRDTypeSelector', {
> xtype: 'segmentedbutton',
> allowMultiple: false,
> allowToggle: true,
> - itemCls: 'x-btn-default-toolbar-small proxmox-inline-button',
> + defautl: {
s/defautl/default ;)
Thanks for identifying and fixing this so quickly!
> + cls: 'x-btn-default-toolbar-small proxmox-inline-button',
> + },
> items: [
> {
> text: gettext('Maximum'),
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [pve-devel] [PATCH widget-toolkit] RRDTypeSelector: fix extjs debug mode
2025-12-05 14:34 [pve-devel] [PATCH widget-toolkit] RRDTypeSelector: fix extjs debug mode Dominik Csapak
2025-12-05 15:15 ` Max R. Carrara
@ 2025-12-05 15:16 ` Thomas Lamprecht
2025-12-05 15:34 ` [pve-devel] applied: " Thomas Lamprecht
2 siblings, 0 replies; 4+ messages in thread
From: Thomas Lamprecht @ 2025-12-05 15:16 UTC (permalink / raw)
To: Proxmox VE development discussion, Dominik Csapak
Am 05.12.25 um 15:34 schrieb Dominik Csapak:
> For some reason, using a space separated list of classes in `itemCls`
> breaks the extjs debug mode. This is seemingly allowed everywhere else,
> so to fix it, simply apply the classes directly to the children
> with 'default'.
This is what I mentioned off-list a two weeks or so ago, I lost track off
it so thx for checking again.
>
> Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
> ---
> src/form/RRDTypeSelector.js | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/src/form/RRDTypeSelector.js b/src/form/RRDTypeSelector.js
> index bbb5d86..51ae23a 100644
> --- a/src/form/RRDTypeSelector.js
> +++ b/src/form/RRDTypeSelector.js
> @@ -75,7 +75,9 @@ Ext.define('Proxmox.form.RRDTypeSelector', {
> xtype: 'segmentedbutton',
> allowMultiple: false,
> allowToggle: true,
> - itemCls: 'x-btn-default-toolbar-small proxmox-inline-button',
> + defautl: {
> + cls: 'x-btn-default-toolbar-small proxmox-inline-button',
> + },
using an array makes it work too here:
itemCls: ['x-btn-default-toolbar-small', 'proxmox-inline-button'],
But your variant is probably the slightly nicer one I think.
> items: [
> {
> text: gettext('Maximum'),
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
^ permalink raw reply [flat|nested] 4+ messages in thread* [pve-devel] applied: [PATCH widget-toolkit] RRDTypeSelector: fix extjs debug mode
2025-12-05 14:34 [pve-devel] [PATCH widget-toolkit] RRDTypeSelector: fix extjs debug mode Dominik Csapak
2025-12-05 15:15 ` Max R. Carrara
2025-12-05 15:16 ` Thomas Lamprecht
@ 2025-12-05 15:34 ` Thomas Lamprecht
2 siblings, 0 replies; 4+ messages in thread
From: Thomas Lamprecht @ 2025-12-05 15:34 UTC (permalink / raw)
To: pve-devel, Dominik Csapak
On Fri, 05 Dec 2025 15:34:45 +0100, Dominik Csapak wrote:
> For some reason, using a space separated list of classes in `itemCls`
> breaks the extjs debug mode. This is seemingly allowed everywhere else,
> so to fix it, simply apply the classes directly to the children
> with 'default'.
>
>
Applied, thanks!
[1/1] RRDTypeSelector: fix extjs debug mode
commit: 54a2e4173c47e7891af9cbbbdbf4f976a924fc7c
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-12-05 15:34 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-05 14:34 [pve-devel] [PATCH widget-toolkit] RRDTypeSelector: fix extjs debug mode Dominik Csapak
2025-12-05 15:15 ` Max R. Carrara
2025-12-05 15:16 ` Thomas Lamprecht
2025-12-05 15:34 ` [pve-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