diff options
author | dartcafe <github@dartcafe.de> | 2021-07-10 12:19:28 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2021-07-10 12:19:28 +0300 |
commit | dccdad42e7d283baa146674b94ff927d49e35bbf (patch) | |
tree | cc5d84af64bb34f5ab339eb0933057a6e5808dae /src | |
parent | 6a37d979c1d97e87cb2847be5e4010ec425c1e0d (diff) |
watch force dependend object refresh server side
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'src')
-rw-r--r-- | src/js/mixins/watchPolls.js | 7 |
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'] } |