Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2022-06-24 11:22:47 +0300
committerdartcafe <github@dartcafe.de>2022-06-24 11:22:47 +0300
commitb0b6bde715fad5290e61791d52e9bd4773654a9e (patch)
tree61c5e11c617e74ed69118d4ac6cf5d2e49b6459a /src/js/components
parentbe746ac78dde8dee7eefd6581de02daa20243a92 (diff)
fix redirect
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'src/js/components')
-rw-r--r--src/js/components/Poll/PublicRegisterModal.vue3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/js/components/Poll/PublicRegisterModal.vue b/src/js/components/Poll/PublicRegisterModal.vue
index 156fbbd1..7a121c1d 100644
--- a/src/js/components/Poll/PublicRegisterModal.vue
+++ b/src/js/components/Poll/PublicRegisterModal.vue
@@ -36,7 +36,7 @@
focus
@submit="submitRegistration" />
- <CheckboxRadioSwitch :checked.sync="saveCookie">
+ <CheckboxRadioSwitch v-if="share.type === 'public'" :checked.sync="saveCookie">
{{ t('polls', 'Remember me for 30 days') }}
</CheckboxRadioSwitch>
@@ -318,6 +318,7 @@ export default {
if (this.registrationIsValid) {
try {
const response = await this.$store.dispatch('share/register', { userName: this.userName, emailAddress: this.emailAddress, saveCookie: this.saveCookie })
+
if (this.$route.params.token === response.token) {
this.$store.dispatch({ type: 'poll/get', pollId: this.$route.params.id, token: this.$route.params.token })
this.closeModal()