X-Git-Url: https://git.auder.net/assets/rpsls.css?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FChat.vue;h=a31f8d0b185448aa7c1cd5c96c330dae98ef665d;hb=7e476ce4b299c0a35529b80c730a452992453cc6;hp=0570752a632c3d0615cceb3a1246e01b39399968;hpb=4f8871051c030acd51172b73cd20aedce687c2a8;p=vchess.git
diff --git a/client/src/components/Chat.vue b/client/src/components/Chat.vue
index 0570752a..a31f8d0b 100644
--- a/client/src/components/Chat.vue
+++ b/client/src/components/Chat.vue
@@ -1,70 +1,72 @@
-#chat.card
- h4 Chat
- p(v-for="chat in chats" :class="classObject(chat)" v-html="chat.msg")
- input#inputChat(type="text" :placeholder="st.tr['Type here']"
- @keyup.enter="sendChat")
- button#sendChatBtn(@click="sendChat") {{ st.tr["Send"] }}
+div
+ button(@click="clearHistory()")
+ | {{ st.tr["Clear history"] }}
+ 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"
+ )