From 900a60edb5ec9c1f2b3f188091120c4cea595167 Mon Sep 17 00:00:00 2001 From: dartcafe Date: Wed, 14 Oct 2020 15:29:31 +0200 Subject: [PATCH 1/2] fix routing --- src/js/components/Navigation/Navigation.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/components/Navigation/Navigation.vue b/src/js/components/Navigation/Navigation.vue index 4075b5a44..5b9551a1e 100644 --- a/src/js/components/Navigation/Navigation.vue +++ b/src/js/components/Navigation/Navigation.vue @@ -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.')) From fe2f59cf18ef92fe8a096f1ac396b09283c80aef Mon Sep 17 00:00:00 2001 From: dartcafe Date: Wed, 14 Oct 2020 16:09:25 +0200 Subject: [PATCH 2/2] send to list after permanent poll deletion --- src/js/components/SideBar/SideBarTabConfiguration.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/js/components/SideBar/SideBarTabConfiguration.vue b/src/js/components/SideBar/SideBarTabConfiguration.vue index 5dc4f1e7d..385eedabb 100644 --- a/src/js/components/SideBar/SideBarTabConfiguration.vue +++ b/src/js/components/SideBar/SideBarTabConfiguration.vue @@ -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.'))