From 5ca45742e4c191e80982e21e4605445f6dff4751 Mon Sep 17 00:00:00 2001 From: adb Date: Fri, 6 Nov 2020 16:20:42 +0100 Subject: [PATCH] chatInfo styling --- src/components/chatInformation.vue | 48 +++++++++++++++++++++++++++++ src/components/chatInformations.vue | 18 ----------- src/components/topBanner.vue | 7 ++++- src/views/chat.vue | 5 ++- 4 files changed, 58 insertions(+), 20 deletions(-) create mode 100644 src/components/chatInformation.vue delete mode 100644 src/components/chatInformations.vue diff --git a/src/components/chatInformation.vue b/src/components/chatInformation.vue new file mode 100644 index 0000000..a665ec5 --- /dev/null +++ b/src/components/chatInformation.vue @@ -0,0 +1,48 @@ + + + \ No newline at end of file diff --git a/src/components/chatInformations.vue b/src/components/chatInformations.vue deleted file mode 100644 index a70cc1c..0000000 --- a/src/components/chatInformations.vue +++ /dev/null @@ -1,18 +0,0 @@ - - - \ No newline at end of file diff --git a/src/components/topBanner.vue b/src/components/topBanner.vue index ed151e4..98005f0 100644 --- a/src/components/topBanner.vue +++ b/src/components/topBanner.vue @@ -7,7 +7,7 @@
{{roomInfo.name}}
{{roomInfo.user.length}} members
- + @@ -19,6 +19,11 @@ export default { components:{ icon }, + methods:{ + showChatInfo(){ + document.getElementById("chatInformation").style.display = 'block'; + } + }, data(){ return { roomInfo: { diff --git a/src/views/chat.vue b/src/views/chat.vue index 353a6f0..c510341 100644 --- a/src/views/chat.vue +++ b/src/views/chat.vue @@ -27,6 +27,7 @@ + @@ -35,6 +36,7 @@ import message from '@/components/message.vue'; import messageReceive from '@/components/messageReceive.vue'; import newMessage from '@/components/newMessage.vue'; import topBanner from "@/components/topBanner"; +import chatInformation from "@/components/chatInformation"; export default { name: 'chat', @@ -42,7 +44,8 @@ export default { message, messageReceive, newMessage, - topBanner + topBanner, + chatInformation } }