all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pmg-devel] [PATCH v2 pmg-gui 1/2] dashboard: node info: use local subscription status only
@ 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
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Fabian Ebner @ 2021-07-23  7:20 UTC (permalink / raw)
  To: pmg-devel

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);
 
-- 
2.30.2





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-07-28  8:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-23  7:20 [pmg-devel] [PATCH v2 pmg-gui 1/2] dashboard: node info: use local subscription status only 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 ` [pmg-devel] [PATCH v2 pmg-gui 1/2] dashboard: node info: use local subscription status only Thomas Lamprecht
2021-07-28  8:30 ` [pmg-devel] applied: " Thomas Lamprecht

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