From: Dominik Csapak <d.csapak@proxmox.com>
To: pmg-devel@lists.proxmox.com
Subject: [pmg-devel] [PATCH pmg-gui 2/3] ServerStatus: update column width on state change
Date: Tue, 13 Jul 2021 12:26:58 +0200 [thread overview]
Message-ID: <20210713102659.3004291-2-d.csapak@proxmox.com> (raw)
In-Reply-To: <20210713102659.3004291-1-d.csapak@proxmox.com>
when having the settings window (when implemented) open there
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
js/ServerStatus.js | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/js/ServerStatus.js b/js/ServerStatus.js
index ba34a65..f006080 100644
--- a/js/ServerStatus.js
+++ b/js/ServerStatus.js
@@ -172,6 +172,14 @@ Ext.define('PMG.ServerStatus', {
},
});
me.callParent();
+
+ let sp = Ext.state.Manager.getProvider();
+ me.mon(sp, 'statechange', function(provider, key, value) {
+ if (key !== 'summarycolumns') {
+ return;
+ }
+ Proxmox.Utils.updateColumnWidth(me);
+ });
},
});
--
2.30.2
next prev parent reply other threads:[~2021-07-13 10:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-13 10:26 [pmg-devel] [PATCH pmg-gui 1/3] LoginView: add save username checkbox Dominik Csapak
2021-07-13 10:26 ` Dominik Csapak [this message]
2021-07-13 10:26 ` [pmg-devel] [PATCH pmg-gui 3/3] add Settings window Dominik Csapak
2021-07-13 12:31 ` [pmg-devel] applied-series: [PATCH pmg-gui 1/3] LoginView: add save username checkbox Thomas Lamprecht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210713102659.3004291-2-d.csapak@proxmox.com \
--to=d.csapak@proxmox.com \
--cc=pmg-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal