Skip to content
Snippets Groups Projects
Commit df4fdca6 authored by Henrik Askjer's avatar Henrik Askjer
Browse files

Show message when switching to language with no results

parent 526a28e7
No related branches found
No related tags found
No related merge requests found
...@@ -249,8 +249,12 @@ export default { ...@@ -249,8 +249,12 @@ export default {
}) })
}) })
self.article = null self.article = null
self.error = null if (! self.search_results.length) {
self.error = "Ordet «" + event.match + "» finnes ikke i ordbøkene"
}
else {
self.error = null
}
}) })
.catch(error => { .catch(error => {
self.search_results = [] self.search_results = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment