make active metrics reactive to cluster filter

This commit is contained in:
Christoph Kluge
2025-11-14 14:45:22 +01:00
parent cbdef6ce9e
commit 21334c8026
2 changed files with 10 additions and 0 deletions

View File

@@ -79,6 +79,11 @@
});
});
$effect(() => {
// Load Metric-Selection for last selected cluster
metrics = selectedCluster ? ccconfig[`metricConfig_jobListMetrics:${selectedCluster}`] : ccconfig.metricConfig_jobListMetrics
});
/* On Mount */
// The filterPresets are handled by the Filters component,
// so we need to wait for it to be ready before we can start a query.

View File

@@ -133,6 +133,11 @@
};
});
$effect(() => {
// Load Metric-Selection for last selected cluster
metrics = selectedCluster ? ccconfig[`metricConfig_jobListMetrics:${selectedCluster}`] : ccconfig.metricConfig_jobListMetrics
});
/* On Mount */
onMount(() => {
filterComponent.updateFilters();