#781: click on edition title back to edition's front

This commit is contained in:
2020-07-21 12:34:39 +02:00
parent aebc2c28da
commit 1e15c60fa3
5 changed files with 94 additions and 53 deletions
+13 -2
View File
@@ -33,7 +33,7 @@ import History from './components/nav/History'
import Results from './components/nav/Results'
import Search from './components/nav/Search'
import FooterTabs from './components/nav/FooterTabs'
import { mapState } from 'vuex'
import { mapActions, mapState } from 'vuex'
export default {
metaInfo: {
@@ -55,7 +55,18 @@ export default {
},
computed: {
...mapState({
resultsOpened: state => state.Search.opened
resultsOpened: state => state.Search.opened,
editionslist: state => state.Corpus.editionslist
})
},
created () {
if (!this.editionslist.length) {
this.getCorpuses()
}
},
methods: {
...mapActions({
getCorpuses: 'Corpus/getCorpuses'
})
}
}