From: Thomas Lamprecht <t.lamprecht@proxmox.com>
To: Fabian Ebner <f.ebner@proxmox.com>, pmg-devel@lists.proxmox.com
Subject: Re: [pmg-devel] [PATCH v2 pmg-gui 1/2] dashboard: node info: use local subscription status only
Date: Wed, 28 Jul 2021 10:30:08 +0200 [thread overview]
Message-ID: <c94453db-163c-2d5f-fe44-5f4c0d95939b@proxmox.com> (raw)
In-Reply-To: <20210723072033.1007848-1-f.ebner@proxmox.com>
On 23.07.21 09:20, Fabian Ebner wrote:
> instead of the cluster-wide status.
>
> Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
> ---
>
> New in v2.
>
> js/Dashboard.js | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/js/Dashboard.js b/js/Dashboard.js
> index 3d8bca3..3cf9cf0 100644
> --- a/js/Dashboard.js
> +++ b/js/Dashboard.js
> @@ -119,6 +119,10 @@ Ext.define('PMG.Dashboard', {
> subStatus = 0;
> }
>
> + if (item.data.name === Proxmox.NodeName) {
> + me.lookup('nodeInfo').setSubscriptionStatus(!!item.data.level);
> + }
> +
> // resources count
> cpu += item.data.cpu || 0;
>
> @@ -140,8 +144,6 @@ Ext.define('PMG.Dashboard', {
> var subscriptionPanel = me.lookup('subscription');
> subscriptionPanel.setSubStatus(subStatus);
>
> - me.lookup('nodeInfo').setSubscriptionStatus(subStatus);
> -
> // the node info already displays this information in case there is no cluster
> me.lookup('clusterResources').setHidden(records.length === 1);
>
>
next prev parent reply other threads:[~2021-07-28 8:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-23 7:20 Fabian Ebner
2021-07-23 7:20 ` [pmg-devel] [PATCH v2 pmg-gui 2/2] dashboard: node status: use repo status widget from widget-toolkit Fabian Ebner
2021-07-23 7:21 ` Fabian Ebner
2021-07-28 8:31 ` [pmg-devel] applied: " Thomas Lamprecht
2021-07-28 8:30 ` Thomas Lamprecht [this message]
2021-07-28 8:30 ` [pmg-devel] applied: [PATCH v2 pmg-gui 1/2] dashboard: node info: use local subscription status only 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=c94453db-163c-2d5f-fe44-5f4c0d95939b@proxmox.com \
--to=t.lamprecht@proxmox.com \
--cc=f.ebner@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