Skip to content

Commit

Permalink
fix: show no results found message when filtering yields no results
Browse files Browse the repository at this point in the history
  • Loading branch information
jfrer committed Jul 30, 2024
1 parent 67582d9 commit dae13f2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/components/workflows/WorkflowsTimeline.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ 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 v-if="filtersStore.gt.length > 0" class="my-6">{{ t('no_results_found')}}</div>
<div v-else class="my-6">{{ $t('no_documents_selected') }}</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 @@ -98,5 +98,6 @@
"year_desc": "Zeitraum (neuster - ältester)",
"select_a_label": "Kennzeichnung auswählen",
"select_a_script_type": "Skript-Typ auswählen",
"no_labelling": "Keine Kennzeichnung"
"no_labelling": "Keine Kennzeichnung",
"no_results_found": "No results found."
}
3 changes: 2 additions & 1 deletion src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,6 @@
"year_desc": "Time period (latest - oldest)",
"select_a_label": "Select a label",
"select_a_script_type": "Select a script-type",
"no_labelling": "No labelling"
"no_labelling": "No labelling",
"no_results_found": "No results found."
}

0 comments on commit dae13f2

Please sign in to comment.