Browse Source

bug: fix to bug 850. Now is possible to open documents from other pages

pull/868/head
Brian Andreossi 4 years ago
parent
commit
a63fc7538e
3 changed files with 1 additions and 7 deletions
  1. 3
      frontend/components/containers/annotation/BottomNavigator.vue
  2. 3
      frontend/components/containers/annotation/Paginator.vue
  3. 2
      frontend/components/containers/documents/DocumentList.vue

3
frontend/components/containers/annotation/BottomNavigator.vue

@ -59,9 +59,6 @@ export default {
this.initPage({ this.initPage({
projectId: this.$route.params.id projectId: this.$route.params.id
}) })
this.getDocumentList({
projectId: this.$route.params.id
})
}, },
methods: { methods: {

3
frontend/components/containers/annotation/Paginator.vue

@ -105,9 +105,6 @@ export default {
this.initPage({ this.initPage({
projectId: this.$route.params.id projectId: this.$route.params.id
}) })
this.getDocumentList({
projectId: this.$route.params.id
})
}, },
methods: { methods: {

2
frontend/components/containers/documents/DocumentList.vue

@ -138,7 +138,7 @@ export default {
this.$router.push('/projects/' + this.$route.params.id + '/' + this.getLink) this.$router.push('/projects/' + this.$route.params.id + '/' + this.getLink)
this.setCurrent(index) this.setCurrent(index)
const checkpoint = {} const checkpoint = {}
checkpoint[this.$route.params.id] = index + 1
checkpoint[this.$route.params.id] = offset + index + 1
localStorage.setItem('checkpoint', JSON.stringify(checkpoint)) localStorage.setItem('checkpoint', JSON.stringify(checkpoint))
} }
} }

Loading…
Cancel
Save