mirror of
				https://github.com/ClusterCockpit/cc-backend
				synced 2025-10-31 07:55:06 +01:00 
			
		
		
		
	handle metric disabled state explicitly in nodeOverview component
This commit is contained in:
		| @@ -124,23 +124,23 @@ | |||||||
| {: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;"> |           <a | ||||||
|             <a |             style="display: block;padding-top: 15px;" | ||||||
|               style="display: block;padding-top: 15px;" |             href="/monitoring/node/{cluster}/{item.host}" | ||||||
|               href="/monitoring/node/{cluster}/{item.host}" |             >{item.host} ({item.subCluster})</a | ||||||
|               >{item.host} ({item.subCluster})</a |           > | ||||||
|             > |         </h4> | ||||||
|           </h4> |         {#key item?.disabled} | ||||||
|           {#if 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} | ||||||
|         </Col> |         {/key} | ||||||
|       {/each} |       </Col> | ||||||
|     {/key} |     {/each} | ||||||
|   </Row> |   </Row> | ||||||
| {/if} | {/if} | ||||||
		Reference in New Issue
	
	Block a user