From d58e08cf52c5953914f0bf1b6c9fb120168c6160 Mon Sep 17 00:00:00 2001 From: taehoon Date: Tue, 2 Apr 2019 16:14:45 -0400 Subject: [PATCH] add search to the mutes tab as well --- src/components/user_settings/user_settings.js | 9 ++++++++- src/components/user_settings/user_settings.vue | 5 +++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/components/user_settings/user_settings.js b/src/components/user_settings/user_settings.js index a0dfbc67..dd931e67 100644 --- a/src/components/user_settings/user_settings.js +++ b/src/components/user_settings/user_settings.js @@ -79,7 +79,8 @@ const UserSettings = { MuteList, EmojiInput, Autosuggest, - BlockCard + BlockCard, + MuteCard }, computed: { user () { @@ -347,6 +348,12 @@ const UserSettings = { return !user || user.statusnet_blocking || user.id === this.$store.state.users.currentUser.id }) }, + filterUnMutedUsers (userIds) { + return reject(userIds, (userId) => { + const user = this.$store.getters.findUser(userId) + return !user || user.muted || user.id === this.$store.state.users.currentUser.id + }) + }, queryUserIds (query) { return userSearchApi.search({query, store: this.$store}) .then((users) => { diff --git a/src/components/user_settings/user_settings.vue b/src/components/user_settings/user_settings.vue index d79abd0f..8fcf4c07 100644 --- a/src/components/user_settings/user_settings.vue +++ b/src/components/user_settings/user_settings.vue @@ -206,6 +206,11 @@
+
+ + + +