mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2026-08-31 00:47:15 +02:00
add tooltips to metricConfig, rendered in metricSelect, rework availability display
This commit is contained in:
@@ -63,8 +63,9 @@
|
||||
let pendingHostnameFilter = $state("");
|
||||
let isMetricsSelectionOpen = $state(false);
|
||||
|
||||
/* Derived Init Return */
|
||||
/* Derived Init Returns */
|
||||
const thisInit = $derived($initq?.data ? true : false);
|
||||
const maxSubClusters = $derived($initq?.data?.clusters?.find((c) => c.name == cluster)?.subClusters?.length || 0);
|
||||
|
||||
/* Derived States */
|
||||
const ccconfig = $derived(thisInit ? getContext("cc-config") : null);
|
||||
@@ -284,6 +285,7 @@
|
||||
{cluster}
|
||||
{subCluster}
|
||||
{globalMetrics}
|
||||
maxSubClusters={subCluster? null: maxSubClusters}
|
||||
configName="nodeList_selectedMetrics"
|
||||
applyMetrics={(newMetrics) =>
|
||||
selectedMetrics = [...newMetrics]
|
||||
|
||||
Reference in New Issue
Block a user