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/js
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2021-07-10 12:19:28 +0300
committerdartcafe <github@dartcafe.de>2021-07-10 12:19:28 +0300
commitdccdad42e7d283baa146674b94ff927d49e35bbf (patch)
treecc5d84af64bb34f5ab339eb0933057a6e5808dae /src/js
parent6a37d979c1d97e87cb2847be5e4010ec425c1e0d (diff)
watch force dependend object refresh server side
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'src/js')
-rw-r--r--src/js/mixins/watchPolls.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/js/mixins/watchPolls.js b/src/js/mixins/watchPolls.js
index 29ddebb9..20e41bb3 100644
--- a/src/js/mixins/watchPolls.js
+++ b/src/js/mixins/watchPolls.js
@@ -31,13 +31,10 @@ export const watchPolls = {
emit('update-polls')
if (item.pollId === parseInt(this.$route.params.id ?? this.$store.state.share.pollId)) {
// if current poll is affected, load current poll configuration
- // load also options and votes
- dispatches = [...dispatches, 'poll/get', 'votes/list', 'options/list']
+ dispatches = [...dispatches, 'poll/get']
}
- } else if (['votes', 'options'].includes(item.table)) {
- dispatches = [...dispatches, 'votes/list', 'options/list']
} else {
- // a table of the current poll was reported, load
+ // a table change of the current poll was reported, load
// corresponding stores
dispatches = [...dispatches, item.table + '/list']
}