X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FChat.vue;h=ae85e736320072cc03785bfa78303f1c15446d0f;hb=604b951e4dc4647da9b251c5fff4ecb4c7b1b298;hp=980cd177d1f977573a50d1babb11577b7d413722;hpb=9ca1e26b79ec1873aa6ac914013160f8593d52cf;p=vchess.git
diff --git a/client/src/components/Chat.vue b/client/src/components/Chat.vue
index 980cd177..ae85e736 100644
--- a/client/src/components/Chat.vue
+++ b/client/src/components/Chat.vue
@@ -1,69 +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")