diff options
author | Marco Ambrosini <marcoambrosini@pm.me> | 2020-02-03 09:47:44 +0100 |
---|---|---|
committer | Marco Ambrosini <marcoambrosini@pm.me> | 2020-02-03 09:47:44 +0100 |
commit | 05ea318afc8cac31e636737eb649767db775c72d (patch) | |
tree | 3fc85a957fdce261857c9225334f77338a920d07 /src/components/LeftSidebar/ConversationsList/ConversationsList.vue | |
parent | 277642f4772adffe8218f1140cd3422ad8e0f29c (diff) |
End search operation when selecting a conversation
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
Diffstat (limited to 'src/components/LeftSidebar/ConversationsList/ConversationsList.vue')
-rw-r--r-- | src/components/LeftSidebar/ConversationsList/ConversationsList.vue | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/components/LeftSidebar/ConversationsList/ConversationsList.vue b/src/components/LeftSidebar/ConversationsList/ConversationsList.vue index 4cd7b0129..1979870a0 100644 --- a/src/components/LeftSidebar/ConversationsList/ConversationsList.vue +++ b/src/components/LeftSidebar/ConversationsList/ConversationsList.vue @@ -24,7 +24,8 @@ <Conversation v-for="item of conversationsList" :key="item.id" - :item="item" /> + :item="item" + @click.native="handleConversationClick" /> <template v-if="!initialisedConversations"> <LoadingHint @@ -135,6 +136,10 @@ export default { console.debug('Error while fetching conversations: ', error) } }, + // Emit the click event so the search text in the leftsidebar can be reset. + handleConversationClick() { + this.$emit('click-conversation') + } }, } </script> |