From 50f5afbce1f2bc4dbd0ddf6c951c7e519dfc6ce3 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 15 Aug 2022 23:19:33 +0300 Subject: add and remove users to/from lists from their profile --- src/components/lists_edit/lists_edit.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/components/lists_edit/lists_edit.js') diff --git a/src/components/lists_edit/lists_edit.js b/src/components/lists_edit/lists_edit.js index a68bb589..e4d0c22a 100644 --- a/src/components/lists_edit/lists_edit.js +++ b/src/components/lists_edit/lists_edit.js @@ -27,9 +27,9 @@ const ListsNew = { } }, created () { - this.$store.dispatch('fetchList', { id: this.id }) + this.$store.dispatch('fetchList', { listId: this.id }) .then(() => { this.title = this.findListTitle(this.id) }) - this.$store.dispatch('fetchListAccounts', { id: this.id }) + this.$store.dispatch('fetchListAccounts', { listId: this.id }) .then(() => { this.selectedUserIds = this.findListAccounts(this.id) this.selectedUserIds.forEach(userId => { @@ -76,13 +76,13 @@ const ListsNew = { this.userIds = results }, updateList () { - this.$store.dispatch('setList', { id: this.id, title: this.title }) - this.$store.dispatch('setListAccounts', { id: this.id, accountIds: this.selectedUserIds }) + this.$store.dispatch('setList', { listId: this.id, title: this.title }) + this.$store.dispatch('setListAccounts', { listId: this.id, accountIds: this.selectedUserIds }) this.$router.push({ name: 'lists-timeline', params: { id: this.id } }) }, deleteList () { - this.$store.dispatch('deleteList', { id: this.id }) + this.$store.dispatch('deleteList', { listId: this.id }) this.$router.push({ name: 'lists' }) } } -- cgit v1.2.3-70-g09d2