{{ t('polls', 'Create a sequence of date options starting with {dateOption}.', { dateOption: moment.unix(sequence.baseOption.timestamp).format('LLLL')}) }}
+{{ t('polls', 'To participate, you need to enter a valid username with at least 3 characters.') }}
+{{ t('polls', 'To participate, enter a username with at least 3 characters.') }}
{ - this.token = response.token - this.redirecting = true - this.$router.replace({ name: 'publicVote', params: { token: response.token } }) + if (this.$route.params.token === response.token) { + this.$store.dispatch({ type: 'loadPollMain', pollId: this.$route.params.id, token: this.$route.params.token }) + } else { + this.token = response.token + this.redirecting = true + this.$router.replace({ name: 'publicVote', params: { token: this.token } }) + } }) .catch(() => { OC.Notification.showTemporary(t('polls', 'Error saving username', 1, this.poll.title), { type: 'error' }) @@ -198,7 +202,7 @@ export default { } - diff --git a/src/js/components/VoteTable/VoteList.vue b/src/js/components/VoteTable/VoteList.vue index 7fe8e4d820..e36271a4e7 100644 --- a/src/js/components/VoteTable/VoteList.vue +++ b/src/js/components/VoteTable/VoteList.vue @@ -113,9 +113,6 @@ export default { userId: participant }) }) - .then(() => { - // this.$emit('voteSaved') - }) } } } @@ -156,7 +153,6 @@ export default { } .vote-list { - margin: 44px 0; display: flex; flex: 0; flex-direction: column; diff --git a/src/js/components/VoteTable/VoteTable.vue b/src/js/components/VoteTable/VoteTable.vue index c2ecb75513..5052e59f40 100644 --- a/src/js/components/VoteTable/VoteTable.vue +++ b/src/js/components/VoteTable/VoteTable.vue @@ -21,7 +21,7 @@ --> -