X-Git-Url: https://git.auder.net/doc/screen_pairings_scoring.png?a=blobdiff_plain;ds=sidebyside;f=client%2Fsrc%2Fcomponents%2FChat.vue;h=6eb7ef31bcb7442b3326d89fd63125ec9aa46c4b;hb=96aa6f038885b1c0bb04b71c59cb767553051fc8;hp=fcdfc840de6a1b4adf04444ac3b5f5095cd4af26;hpb=cf2343cee5729c011770ace6d5b4f79d1ac3a2b6;p=vchess.git
diff --git a/client/src/components/Chat.vue b/client/src/components/Chat.vue
index fcdfc840..6eb7ef31 100644
--- a/client/src/components/Chat.vue
+++ b/client/src/components/Chat.vue
@@ -1,71 +1,73 @@
div
- input#modalChat.modal(type="checkbox")
- div(role="dialog")
- .card.smallpad
- label#closeChat.modal-close(for="modalChat")
- p(v-for="chat in chats" :class={
- "my-chatmsg": "chat.uid==user.id",
- "opp-chatmsg": "opponents.any(o => o.id == chat.uid)"}
- v-html="chat.msg")
- input#inputChat(type="text" placeholder="st.tr['Type here']"
- @keyup.enter="sendChat")
- button#sendChatBtn(@click="sendChat") {{ st.tr["Send"] }}
+ 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"
+ )
+
+