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

fix loading

parent adf62f6d
No related branches found
No related tags found
No related merge requests found
...@@ -100,6 +100,8 @@ const api = setup({ ...@@ -100,6 +100,8 @@ const api = setup({
function navigate_to_article(self, source) { function navigate_to_article(self, source) {
self.article = null
self.waiting_for_articles = true
/* /*
if ((self.$route.query.nocache || '').toLowerCase() == 'true') { if ((self.$route.query.nocache || '').toLowerCase() == 'true') {
config.headers.cachebuster = Date.now() config.headers.cachebuster = Date.now()
...@@ -157,6 +159,7 @@ function navigate_to_search(self, query) { ...@@ -157,6 +159,7 @@ function navigate_to_search(self, query) {
*/ */
function navigate_to_query(self, word) { function navigate_to_query(self, word) {
self.waiting_for_articles = true
let query = self.event ? self.event : {q: word} let query = self.event ? self.event : {q: word}
// Get article IDs // Get article IDs
...@@ -301,8 +304,6 @@ export default { ...@@ -301,8 +304,6 @@ export default {
this.article_key++ this.article_key++
history.replaceState({article: this.article, search_results: this.search_results, lang: this.lang, error: this.error}, '') history.replaceState({article: this.article, search_results: this.search_results, lang: this.lang, error: this.error}, '')
}else{ }else{
this.article = null
this.waiting_for_articles = true
navigate_to_article(this, item.source) navigate_to_article(this, item.source)
} }
}, },
......
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