diff --git a/src/components/NavigationList.vue b/src/components/NavigationList.vue
index a778f8c1..44953776 100644
--- a/src/components/NavigationList.vue
+++ b/src/components/NavigationList.vue
@@ -8,24 +8,15 @@
/>
-
+
-
+
-
- {{ t('notes', 'No search result for “{search}” in {category}', { search: search, category: category }) }}
+
+ {{ t('notes', 'No search result for “{search}” in {category}', { search: search, category: categoryTitle(category) }) }}
{{ t('notes', 'No search result for “{search}”', { search: search }) }}
@@ -128,6 +119,14 @@ export default {
noteItems() {
return this.groupedNotes
},
+
+ searchResultTitle() {
+ if (this.category !== null) {
+ return t('notes', 'Search result for “{search}” in {category}', { search: this.search, category: this.categoryTitle(this.category) })
+ } else {
+ return t('notes', 'Search result for “{search}”', { search: this.search })
+ }
+ },
},
created() {
@@ -149,6 +148,10 @@ export default {
]
},
+ categoryTitle(category) {
+ return NotesService.categoryLabel(category)
+ },
+
categoryToLabel(category) {
return NotesService.categoryLabel(category.substring(this.category.length + 1))
},
@@ -171,10 +174,12 @@ export default {
}