From 3d9a9cd5a096d4b1fbbf82b7597db53a03542b57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Wed, 19 Jul 2023 17:47:56 +0200 Subject: [PATCH] Create the chat room on user search in chats function --- .../Chat/AddChatRoomByUserSearch.vue | 58 +------------------ webapp/components/Chat/Chat.vue | 36 +++++++----- webapp/pages/chat.vue | 8 ++- 3 files changed, 28 insertions(+), 74 deletions(-) diff --git a/webapp/components/Chat/AddChatRoomByUserSearch.vue b/webapp/components/Chat/AddChatRoomByUserSearch.vue index b5cf0fd4c..a9a2a5bf6 100644 --- a/webapp/components/Chat/AddChatRoomByUserSearch.vue +++ b/webapp/components/Chat/AddChatRoomByUserSearch.vue @@ -5,28 +5,11 @@ - diff --git a/webapp/pages/chat.vue b/webapp/pages/chat.vue index bdc2a1ee2..a16fca5c5 100644 --- a/webapp/pages/chat.vue +++ b/webapp/pages/chat.vue @@ -3,13 +3,14 @@ {{ $t('chat.page.headline') }} @@ -43,8 +44,9 @@ export default { ...mapMutations({ showChat: 'chat/SET_OPEN_CHAT', }), - loadChatRooms(newChatRoomID) { - console.log('loadChatRooms !!! newChatRoomID: ', newChatRoomID) + addChatRoom(userID) { + console.log('addChatRoom !!! newChatRoomID: ', userID) + this.$refs.chat.newRoom(userID) }, }, }