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

Revert "use internal lang state"

This reverts commit 6681f24c.
parent 79512263
No related branches found
No related tags found
No related merge requests found
...@@ -110,10 +110,11 @@ function navigate_to_article(self, origin) { ...@@ -110,10 +110,11 @@ function navigate_to_article(self, origin) {
self.article = null self.article = null
self.waiting_for_articles = true self.waiting_for_articles = true
const lang = self.$route.params.lang
axios.get(ARTICLE_ENDPOINT + self.lang + '/article/' + self.$route.params.id + ".json") axios.get(ARTICLE_ENDPOINT + lang + '/article/' + self.$route.params.id + ".json")
.then(function(response){ .then(function(response){
self.article = Object.assign(response.data, {'dictionary': self.lang, results: self.search_results}) self.article = Object.assign(response.data, {'dictionary': lang, results: self.search_results})
self.error = null self.error = null
}) })
.catch(function(error){ .catch(function(error){
......
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