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>2021-02-27 11:19:40 +0300
committerdartcafe <github@dartcafe.de>2021-02-27 11:19:40 +0300
commit3baec9241d4c60e571dbbbdf8dcaec0b97a10c22 (patch)
tree847b63c8f2c532b9776c601f449b741a4dce2f74 /src/js/components/Base
parentcc2065aa69630cba75793e4b55544ed41ca33e99 (diff)
move store modules away from submodules
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'src/js/components/Base')
-rw-r--r--src/js/components/Base/Confirmation.vue6
-rw-r--r--src/js/components/Base/PollInformation.vue4
-rw-r--r--src/js/components/Base/UserSearch.vue2
3 files changed, 6 insertions, 6 deletions
diff --git a/src/js/components/Base/Confirmation.vue b/src/js/components/Base/Confirmation.vue
index ec701867..9feff19e 100644
--- a/src/js/components/Base/Confirmation.vue
+++ b/src/js/components/Base/Confirmation.vue
@@ -44,14 +44,14 @@ export default {
computed: {
...mapState({
poll: state => state.poll,
- votes: state => state.poll.votes.list,
+ votes: state => state.votes.list,
}),
...mapGetters({
- votesRank: 'poll/votes/ranked',
+ votesRank: 'votes/ranked',
participantsVoted: 'poll/participantsVoted',
closed: 'poll/closed',
- confirmedOptions: 'poll/options/confirmed',
+ confirmedOptions: 'options/confirmed',
}),
isConfirmed() {
diff --git a/src/js/components/Base/PollInformation.vue b/src/js/components/Base/PollInformation.vue
index cb5374d6..d9544fbf 100644
--- a/src/js/components/Base/PollInformation.vue
+++ b/src/js/components/Base/PollInformation.vue
@@ -77,8 +77,8 @@ export default {
...mapGetters({
participantsVoted: 'poll/participantsVoted',
closed: 'poll/closed',
- confirmedOptions: 'poll/options/confirmed',
- countYesVotes: 'poll/votes/countYesVotes',
+ confirmedOptions: 'options/confirmed',
+ countYesVotes: 'votes/countYesVotes',
}),
voteLimitReached() {
diff --git a/src/js/components/Base/UserSearch.vue b/src/js/components/Base/UserSearch.vue
index f6492943..b637773e 100644
--- a/src/js/components/Base/UserSearch.vue
+++ b/src/js/components/Base/UserSearch.vue
@@ -100,7 +100,7 @@ export default {
addShare(payload) {
this.$store
- .dispatch('poll/shares/add', {
+ .dispatch('shares/add', {
share: payload,
type: payload.type,
id: payload.id,