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
path: root/src
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2021-05-31 10:17:08 +0300
committerdartcafe <github@dartcafe.de>2021-05-31 10:17:08 +0300
commitc7de1b075636c0fd8b3725c4bc74ce31e396b415 (patch)
treeeda3fdd4461382e8a15e84bfa9152a132c0d2dac /src
parentf989b5d0a42bd62701b210b4e79ed7c8308e3661 (diff)
allow user parameters in public poll #587
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'src')
-rw-r--r--src/js/components/Poll/PublicRegisterModal.vue12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/js/components/Poll/PublicRegisterModal.vue b/src/js/components/Poll/PublicRegisterModal.vue
index fd4bfdb8..097ff594 100644
--- a/src/js/components/Poll/PublicRegisterModal.vue
+++ b/src/js/components/Poll/PublicRegisterModal.vue
@@ -207,8 +207,16 @@ export default {
},
mounted() {
- this.userName = this.share.displayName
- this.emailAddress = this.share.emailAddress
+ if (this.$route.name === 'publicVote' && this.$route.query.name) {
+ this.userName = this.$route.query.name
+ } else {
+ this.userName = this.share.displayName
+ }
+ if (this.$route.name === 'publicVote' && this.$route.query.email) {
+ this.emailAddress = this.$route.query.email
+ } else {
+ this.emailAddress = this.share.emailAddress
+ }
},
methods: {