mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2026-02-11 21:41:46 +01:00
complete review of context initialization and access, streamlining
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
- `cluster String`: The nodes' cluster
|
||||
- `nodeData Object`: The node data object including metric data
|
||||
- `selectedMetrics [String]`: The array of selected metrics
|
||||
- `globalMetrics [Obj]`: Includes the backend supplied availabilities for cluster and subCluster
|
||||
-->
|
||||
|
||||
<script>
|
||||
@@ -24,6 +25,7 @@
|
||||
cluster,
|
||||
nodeData,
|
||||
selectedMetrics,
|
||||
globalMetrics
|
||||
} = $props();
|
||||
|
||||
/* Var Init*/
|
||||
@@ -92,6 +94,7 @@
|
||||
if (scopedNodeMetric?.data) {
|
||||
return {
|
||||
disabled: checkMetricDisabled(
|
||||
globalMetrics,
|
||||
scopedNodeMetric.data.name,
|
||||
cluster,
|
||||
nodeData.subCluster,
|
||||
|
||||
Reference in New Issue
Block a user