diff options
author | dartcafe <github@dartcafe.de> | 2021-04-18 23:58:08 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2021-04-18 23:58:08 +0300 |
commit | 5ada3eaef1c0eda81d94a3fe26826313241d929d (patch) | |
tree | 8a796cabb9ba4e4193e64c63ec035b8c281c6d89 /src/js/views/PollList.vue | |
parent | 2488d3a0e557161e73caa7557bf2f9bce3f74242 (diff) |
object-shorthand
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'src/js/views/PollList.vue')
-rw-r--r-- | src/js/views/PollList.vue | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/js/views/PollList.vue b/src/js/views/PollList.vue index 0dd41d74..ef63f223 100644 --- a/src/js/views/PollList.vue +++ b/src/js/views/PollList.vue @@ -172,7 +172,7 @@ export default { async loadPoll(pollId) { try { - await this.$store.dispatch({ type: 'poll/get', pollId: pollId }) + await this.$store.dispatch({ type: 'poll/get', pollId }) emit('toggle-sidebar', { open: true }) } catch { showError(t('polls', 'Error loading poll')) @@ -200,7 +200,7 @@ export default { callPoll(index, poll, name) { this.$router.push({ - name: name, + name, params: { id: poll.id, }, @@ -209,7 +209,7 @@ export default { async switchDeleted(pollId) { try { - await this.$store.dispatch('poll/switchDeleted', { pollId: pollId }) + await this.$store.dispatch('poll/switchDeleted', { pollId }) } catch { showError(t('polls', 'Error deleting poll.')) } finally { @@ -219,7 +219,7 @@ export default { async deletePermanently(pollId) { try { - await this.$store.dispatch('poll/delete', { pollId: pollId }) + await this.$store.dispatch('poll/delete', { pollId }) } catch { showError(t('polls', 'Error deleting poll.')) } finally { @@ -229,7 +229,7 @@ export default { async clonePoll(pollId) { try { - await this.$store.dispatch('poll/clone', { pollId: pollId }) + await this.$store.dispatch('poll/clone', { pollId }) } catch { showError(t('polls', 'Error cloning poll.')) } finally { |