Skip to content

Commit

Permalink
Merge pull request #1161 from nextcloud/fix-routing-after-cloning
Browse files Browse the repository at this point in the history
Fix some routing issues
  • Loading branch information
dartcafe authored Oct 15, 2020
2 parents 7ebabac + fe2f59c commit 2a737a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/components/Navigation/Navigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export default {
.dispatch('poll/clone', { pollId: pollId })
.then((response) => {
emit('update-polls')
this.$router.push({ name: 'vote', params: { id: response.pollId } })
this.$router.push({ name: 'vote', params: { id: response.id } })
})
.catch(() => {
showError(t('polls', 'Error cloning poll.'))
Expand Down
1 change: 1 addition & 0 deletions src/js/components/SideBar/SideBarTabConfiguration.vue
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ export default {
.dispatch('poll/delete', { pollId: this.poll.id })
.then(() => {
emit('update-polls')
this.$router.push({ name: 'list', params: { type: 'relevant' } })
})
.catch(() => {
showError(t('polls', 'Error deleting poll.'))
Expand Down

0 comments on commit 2a737a1

Please sign in to comment.