diff options
author | dartcafe <github@dartcafe.de> | 2021-05-31 10:17:08 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2021-05-31 10:17:08 +0300 |
commit | c7de1b075636c0fd8b3725c4bc74ce31e396b415 (patch) | |
tree | eda3fdd4461382e8a15e84bfa9152a132c0d2dac /src | |
parent | f989b5d0a42bd62701b210b4e79ed7c8308e3661 (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.vue | 12 |
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: { |