diff --git a/src/components/workflows/WorkflowsTimeline.vue b/src/components/workflows/WorkflowsTimeline.vue index 1311e11..9146ad9 100644 --- a/src/components/workflows/WorkflowsTimeline.vue +++ b/src/components/workflows/WorkflowsTimeline.vue @@ -11,6 +11,7 @@ import filtersStore from '@/store/filters-store' import timelineStore from "@/store/timeline-store" import TrendLegend from "@/components/workflows/TrendLegend.vue" import TimelineFilters from "./timeline/TimelineFilters.vue" +import TimelineSorting from "./timeline/TimelineSorting.vue" const { t } = useI18n() const gtList = computed(() => workflowsStore.gt.filter(({ id }) => filtersStore.gtTimeline.findIndex(({ value }) => value === id) > -1)) @@ -18,12 +19,18 @@ const workflows = ref([]) const selectedMetric = ref(null) const metrics = computed(() => Object.keys(EvaluationMetrics).map(key => ({ value: EvaluationMetrics[key], label: t(EvaluationMetrics[key]) }))) const selectedMetricValue = computed(() => selectedMetric.value?.value as keyof EvaluationResultsDocumentWide || EvaluationMetrics.CER_MEAN) +const sortedGtList = ref([]) + onMounted(async () => { selectedMetric.value = metrics.value[0] workflows.value = workflowsStore.workflows }) +watch(gtList, () => { + sortedGtList.value = gtList.value +}) + watch(selectedMetric, () => timelineStore.setMaxValue( selectedMetricValue.value, @@ -35,22 +42,23 @@ watch(selectedMetric,