[pmg-devel] [PATCH v2 pmg-gui 1/2] dashboard: node info: use local subscription status only

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Jul 28 10:30:08 CEST 2021


On 23.07.21 09:20, Fabian Ebner wrote:
> instead of the cluster-wide status.
> 
> Signed-off-by: Fabian Ebner <f.ebner at 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);
>  
> 





More information about the pmg-devel mailing list