diff options
| author | Henry Jameson <me@hjkos.com> | 2022-08-15 23:19:33 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2022-08-15 23:19:33 +0300 |
| commit | 50f5afbce1f2bc4dbd0ddf6c951c7e519dfc6ce3 (patch) | |
| tree | 200ab58c3c3cebdcf7acf073096881824184eb3c /src/components/lists_edit | |
| parent | 14292d7ed12a806efcf766895bc1c3aa56fd53f8 (diff) | |
add and remove users to/from lists from their profile
Diffstat (limited to 'src/components/lists_edit')
| -rw-r--r-- | src/components/lists_edit/lists_edit.js | 10 |
1 files changed, 5 insertions, 5 deletions
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' }) } } |
