* [pmg-devel] [PATCH pmg-gui] dashboard: implement columns browser setting
@ 2024-02-27 10:38 Dominik Csapak
2024-02-27 14:05 ` [pmg-devel] applied: " Thomas Lamprecht
0 siblings, 1 reply; 2+ messages in thread
From: Dominik Csapak @ 2024-02-27 10:38 UTC (permalink / raw)
To: pmg-devel
like we do it e.g. for the node status
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
js/Dashboard.js | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/js/Dashboard.js b/js/Dashboard.js
index 9c51734..b536cb2 100644
--- a/js/Dashboard.js
+++ b/js/Dashboard.js
@@ -186,9 +186,20 @@ Ext.define('PMG.Dashboard', {
var sp = Ext.state.Manager.getProvider();
var hours = sp.get('dashboard-hours') || 12;
me.setHours(hours, false);
+
+ view.mon(sp, 'statechange', function(provider, key, value) {
+ if (key !== 'summarycolumns') {
+ return;
+ }
+ Proxmox.Utils.updateColumnWidth(view);
+ });
},
},
+ listeners: {
+ resize: panel => Proxmox.Utils.updateColumnWidth(panel),
+ },
+
viewModel: {
data: {
timespan: 300, // in seconds
@@ -322,7 +333,7 @@ Ext.define('PMG.Dashboard', {
bodyPadding: '20 0 0 20',
defaults: {
- columnWidth: 0.5,
+ columnWidth: 1,
xtype: 'panel',
margin: '0 20 20 0',
},
--
2.30.2
^ permalink raw reply [flat|nested] 2+ messages in thread
* [pmg-devel] applied: [PATCH pmg-gui] dashboard: implement columns browser setting
2024-02-27 10:38 [pmg-devel] [PATCH pmg-gui] dashboard: implement columns browser setting Dominik Csapak
@ 2024-02-27 14:05 ` Thomas Lamprecht
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Lamprecht @ 2024-02-27 14:05 UTC (permalink / raw)
To: Dominik Csapak, pmg-devel
Am 27/02/2024 um 11:38 schrieb Dominik Csapak:
> like we do it e.g. for the node status
>
> Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
> ---
> js/Dashboard.js | 13 ++++++++++++-
> 1 file changed, 12 insertions(+), 1 deletion(-)
>
>
applied, thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-02-27 14:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-27 10:38 [pmg-devel] [PATCH pmg-gui] dashboard: implement columns browser setting Dominik Csapak
2024-02-27 14:05 ` [pmg-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