Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: show no results found message when filtering yields no results #103

Merged
merged 5 commits into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/components/workflows/WorkflowsTimeline.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ watch(selectedMetric,
<TimelineItem v-for="gt in sortedGtList" :key="gt.id" :gt="gt" :metric="selectedMetricValue" />
</template>
<template v-else-if="workflowsStore.gt.length > 0 ">
<div class="my-6">{{ $t('no_documents_selected') }}</div>
<div class="my-6">
<span v-if="filtersStore.gt.length > 0">{{ t('no_results_found') }}</span>
<span v-else>{{ t('no_documents_selected') }}</span>
</div>
</template>
<template v-else>
<div class="my-6">{{ $t('error_please_try_again_later') }}</div>
Expand Down
3 changes: 2 additions & 1 deletion src/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,6 @@
"no_labelling": "Keine Kennzeichnung",
"select_ground_truth": "Ground Truth auswählen",
"filter_by": "Filtern nach",
"metric": "Metric"
"metric": "Metrik",
"no_results_found": "Keine Ergebnisse gefunden."
}
3 changes: 2 additions & 1 deletion src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,6 @@
"no_labelling": "No labelling",
"select_ground_truth": "Select Ground Truth",
"filter_by": "Filter by",
"metric": "Metric"
"metric": "Metric",
"no_results_found": "No results found."
}
Loading