X-Git-Url: https://git.auder.net/assets/icon_close.svg?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FChat.vue;h=ae85e736320072cc03785bfa78303f1c15446d0f;hb=2f258c37c19c5be20ec68695ddfaec2c21f7f0ae;hp=cd3c3c89b7932e6a7fac246f43fd35d9981e678c;hpb=63ca2b89cfe577efd168c6b2e26750cb01b66d64;p=vchess.git
diff --git a/client/src/components/Chat.vue b/client/src/components/Chat.vue
index cd3c3c89..ae85e736 100644
--- a/client/src/components/Chat.vue
+++ b/client/src/components/Chat.vue
@@ -1,70 +1,58 @@
-.card
- input#inputChat(type="text" :placeholder="st.tr['Type here']"
- @keyup.enter="sendChat")
- button#sendChatBtn(@click="sendChat") {{ st.tr["Send"] }}
- p(v-for="chat in chats" :class="classObject(chat)" v-html="chat.msg")
+div
+ input#inputChat(type="text" :placeholder="st.tr['Chat here']"
+ @keyup.enter="sendChat()")
+ button(@click="sendChat()") {{ st.tr["Send"] }}
+ p(v-for="chat in chats.concat(pastChats)")
+ span.name {{ chat.name }} :
+ span(:class="classObject(chat)" v-html="chat.msg")