mirror of
				https://github.com/ClusterCockpit/cc-backend
				synced 2025-10-31 16:05:06 +01:00 
			
		
		
		
	handle metric disabled state explicitly in nodeOverview component
This commit is contained in:
		| @@ -124,7 +124,6 @@ | |||||||
| {:else if filteredData?.length > 0} | {:else if filteredData?.length > 0} | ||||||
|   <!-- PlotGrid flattened into this component --> |   <!-- PlotGrid flattened into this component --> | ||||||
|   <Row cols={{ xs: 1, sm: 2, md: 3, lg: ccconfig.plot_view_plotsPerRow}}> |   <Row cols={{ xs: 1, sm: 2, md: 3, lg: ccconfig.plot_view_plotsPerRow}}> | ||||||
|     {#key filteredData} |  | ||||||
|     {#each filteredData as item (item.host)} |     {#each filteredData as item (item.host)} | ||||||
|       <Col class="px-1"> |       <Col class="px-1"> | ||||||
|         <h4 style="width: 100%; text-align: center;"> |         <h4 style="width: 100%; text-align: center;"> | ||||||
| @@ -134,13 +133,14 @@ | |||||||
|             >{item.host} ({item.subCluster})</a |             >{item.host} ({item.subCluster})</a | ||||||
|           > |           > | ||||||
|         </h4> |         </h4> | ||||||
|           {#if item?.disabled} |         {#key item?.disabled} | ||||||
|  |           {#if item?.disabled === true} | ||||||
|             <Card body class="mx-3" color="info" |             <Card body class="mx-3" color="info" | ||||||
|               >Metric disabled for subcluster <code |               >Metric disabled for subcluster <code | ||||||
|                 >{selectedMetric}:{item.subCluster}</code |                 >{selectedMetric}:{item.subCluster}</code | ||||||
|               ></Card |               ></Card | ||||||
|             > |             > | ||||||
|           {:else} |           {:else if item?.disabled === false} | ||||||
|             <!-- "No Data"-Warning included in MetricPlot-Component   --> |             <!-- "No Data"-Warning included in MetricPlot-Component   --> | ||||||
|             <!-- #key: X-axis keeps last selected timerange otherwise --> |             <!-- #key: X-axis keeps last selected timerange otherwise --> | ||||||
|             <MetricPlot |             <MetricPlot | ||||||
| @@ -151,9 +151,15 @@ | |||||||
|               subCluster={item.subCluster} |               subCluster={item.subCluster} | ||||||
|               forNode |               forNode | ||||||
|             /> |             /> | ||||||
|  |           {:else} | ||||||
|  |             <Card body class="mx-3" | ||||||
|  |               >Metric Query Empty: Please Reload Page <code | ||||||
|  |                 >{selectedMetric}:{item.subCluster}</code | ||||||
|  |               ></Card | ||||||
|  |             > | ||||||
|           {/if} |           {/if} | ||||||
|  |         {/key} | ||||||
|       </Col> |       </Col> | ||||||
|     {/each} |     {/each} | ||||||
|     {/key} |  | ||||||
|   </Row> |   </Row> | ||||||
| {/if} | {/if} | ||||||
		Reference in New Issue
	
	Block a user