From ab3064ba53e62e9efca4ef35dde76bb76d0e0f57 Mon Sep 17 00:00:00 2001 From: jfrer <76432831+jfrer@users.noreply.github.com> Date: Tue, 22 Oct 2024 14:50:06 +0200 Subject: [PATCH] fix: show no results found message when filtering yields no results (#103) * fix: show no results found message when filtering yields no results * fix: add german translations * refactor: only switch text instead of whole div --- src/components/workflows/WorkflowsTimeline.vue | 5 ++++- src/locales/de.json | 3 ++- src/locales/en.json | 3 ++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/components/workflows/WorkflowsTimeline.vue b/src/components/workflows/WorkflowsTimeline.vue index 896d92d..655af37 100644 --- a/src/components/workflows/WorkflowsTimeline.vue +++ b/src/components/workflows/WorkflowsTimeline.vue @@ -61,7 +61,10 @@ watch(selectedMetric, - {{ $t('no_documents_selected') }} + + {{ t('no_results_found') }} + {{ t('no_documents_selected') }} + {{ $t('error_please_try_again_later') }} diff --git a/src/locales/de.json b/src/locales/de.json index 1153eac..3c7733b 100644 --- a/src/locales/de.json +++ b/src/locales/de.json @@ -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." } diff --git a/src/locales/en.json b/src/locales/en.json index f1d4d36..0786bf0 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -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." }