diff options
author | René Gieling <github@dartcafe.de> | 2021-01-11 18:42:28 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-11 18:42:28 +0300 |
commit | e43afa2df944a521a902db3c6d43463a39a22dd3 (patch) | |
tree | 1ed773bc3b2b614fe2373d70e96450ea37b31c0f /src/js/components/Base | |
parent | 5d423d4738bb439d72cb5609959d73b72ddcb89c (diff) | |
parent | e2c6463f0d685a13d5b39b6c1a51af420fe8d174 (diff) |
Merge pull request #1339 from nextcloud/refactor-store
Refactor store
Diffstat (limited to 'src/js/components/Base')
-rw-r--r-- | src/js/components/Base/Badge.vue | 1 | ||||
-rw-r--r-- | src/js/components/Base/PersonalLink.vue | 4 | ||||
-rw-r--r-- | src/js/components/Base/PublicRegisterModal.vue | 4 |
3 files changed, 4 insertions, 5 deletions
diff --git a/src/js/components/Base/Badge.vue b/src/js/components/Base/Badge.vue index a49d57ad..ec6fa616 100644 --- a/src/js/components/Base/Badge.vue +++ b/src/js/components/Base/Badge.vue @@ -58,7 +58,6 @@ export default { } .badge { - // border: solid 1px; border-radius: var(--border-radius); padding: 5px; margin: 8px 4px; diff --git a/src/js/components/Base/PersonalLink.vue b/src/js/components/Base/PersonalLink.vue index 1e1668bc..9816d307 100644 --- a/src/js/components/Base/PersonalLink.vue +++ b/src/js/components/Base/PersonalLink.vue @@ -49,7 +49,7 @@ export default { computed: { ...mapState({ - share: state => state.poll.share, + share: state => state.share, }), personalLink() { @@ -64,7 +64,7 @@ export default { methods: { resendInvitation() { - this.$store.dispatch('poll/share/resendInvitation') + this.$store.dispatch('share/resendInvitation') .then((response) => { showSuccess(t('polls', 'Invitation resent to {emailAddress}', { emailAddress: response.data.share.emailAddress })) }) diff --git a/src/js/components/Base/PublicRegisterModal.vue b/src/js/components/Base/PublicRegisterModal.vue index 3d3bf9ce..03fad48a 100644 --- a/src/js/components/Base/PublicRegisterModal.vue +++ b/src/js/components/Base/PublicRegisterModal.vue @@ -97,7 +97,7 @@ export default { computed: { ...mapState({ poll: state => state.poll, - share: state => state.poll.share, + share: state => state.share, }), disableSubmit() { @@ -251,7 +251,7 @@ export default { submitRegistration() { if (this.isValidName && (this.isValidEmailAddress || this.emailAddress.length === 0)) { - this.$store.dispatch('poll/share/register', { userName: this.userName, emailAddress: this.emailAddress }) + this.$store.dispatch('share/register', { userName: this.userName, emailAddress: this.emailAddress }) .then((response) => { if (this.$route.params.token === response.token) { this.$store.dispatch({ type: 'poll/get', pollId: this.$route.params.id, token: this.$route.params.token }) |