From a63fc7538e10b58fa2410d1b2744e22fe8eafd09 Mon Sep 17 00:00:00 2001 From: Brian Andreossi Date: Mon, 6 Jul 2020 11:46:03 -0300 Subject: [PATCH] bug: fix to bug 850. Now is possible to open documents from other pages --- frontend/components/containers/annotation/BottomNavigator.vue | 3 --- frontend/components/containers/annotation/Paginator.vue | 3 --- frontend/components/containers/documents/DocumentList.vue | 2 +- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/frontend/components/containers/annotation/BottomNavigator.vue b/frontend/components/containers/annotation/BottomNavigator.vue index 3fcc1078..58cd2018 100644 --- a/frontend/components/containers/annotation/BottomNavigator.vue +++ b/frontend/components/containers/annotation/BottomNavigator.vue @@ -59,9 +59,6 @@ export default { this.initPage({ projectId: this.$route.params.id }) - this.getDocumentList({ - projectId: this.$route.params.id - }) }, methods: { diff --git a/frontend/components/containers/annotation/Paginator.vue b/frontend/components/containers/annotation/Paginator.vue index 288e4106..4ae2e121 100644 --- a/frontend/components/containers/annotation/Paginator.vue +++ b/frontend/components/containers/annotation/Paginator.vue @@ -105,9 +105,6 @@ export default { this.initPage({ projectId: this.$route.params.id }) - this.getDocumentList({ - projectId: this.$route.params.id - }) }, methods: { diff --git a/frontend/components/containers/documents/DocumentList.vue b/frontend/components/containers/documents/DocumentList.vue index 4f5eaaed..5e8ce12a 100644 --- a/frontend/components/containers/documents/DocumentList.vue +++ b/frontend/components/containers/documents/DocumentList.vue @@ -138,7 +138,7 @@ export default { this.$router.push('/projects/' + this.$route.params.id + '/' + this.getLink) this.setCurrent(index) const checkpoint = {} - checkpoint[this.$route.params.id] = index + 1 + checkpoint[this.$route.params.id] = offset + index + 1 localStorage.setItem('checkpoint', JSON.stringify(checkpoint)) } }