From b4f4b370d406faf69be5c414ce394b608d8792f5 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Wed, 17 Aug 2022 00:58:05 +0300 Subject: [PATCH] forgot to actually add add/remove methods, lel. remove some consolelogs --- src/components/lists_edit/lists_edit.js | 4 ++-- src/components/navigation/filter.js | 2 +- src/components/timeline/timeline.js | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/lists_edit/lists_edit.js b/src/components/lists_edit/lists_edit.js index b1516af04f..533bceb9f7 100644 --- a/src/components/lists_edit/lists_edit.js +++ b/src/components/lists_edit/lists_edit.js @@ -94,10 +94,10 @@ const ListsNew = { return this.addedUserIds.has(user.id) }, addUser (user) { - // this.selectedUserIds.push(user.id) + this.$store.dispatch('addListAccount', { accountId: this.user.id, listId: this.id }) }, removeUser (userId) { - // this.selectedUserIds = this.selectedUserIds.filter(id => id !== userId) + this.$store.dispatch('removeListAccount', { accountId: this.user.id, listId: this.id }) }, onSearchLoading (results) { this.searchLoading = true diff --git a/src/components/navigation/filter.js b/src/components/navigation/filter.js index 71661d6f6a..31b554868c 100644 --- a/src/components/navigation/filter.js +++ b/src/components/navigation/filter.js @@ -10,7 +10,7 @@ export const filterNavigation = (list = [], { hasChats, isFederating, isPrivate, }) } -export const getListEntries = state => console.log(state.lists) || state.lists.allLists.map(list => ({ +export const getListEntries = state => state.lists.allLists.map(list => ({ name: 'list-' + list.id, routeObject: { name: 'lists-timeline', params: { id: list.id } }, labelRaw: list.title, diff --git a/src/components/timeline/timeline.js b/src/components/timeline/timeline.js index ee590c4bb2..8f6cae66b9 100644 --- a/src/components/timeline/timeline.js +++ b/src/components/timeline/timeline.js @@ -28,7 +28,6 @@ const Timeline = { 'footerSlipgate' // reference to an element where we should put our footer ], data () { - console.log(this.timelineName) return { paused: false, unfocused: false,