X-Git-Url: https://git.auder.net/images/pieces/Cwda/bd.svg?a=blobdiff_plain;ds=sidebyside;f=client%2Fsrc%2Fcomponents%2FChat.vue;h=f1e1fad251a25307745933432b462efa2d26b8d1;hb=910d631b73cad5ffef1b4461157b704e7e7057d8;hp=364f574ca7f9670d4f36b5c728bbd42652c78832;hpb=f21cd6d9c23da37d729f20ea4c08e56b1a7b10a1;p=vchess.git
diff --git a/client/src/components/Chat.vue b/client/src/components/Chat.vue
index 364f574c..f1e1fad2 100644
--- a/client/src/components/Chat.vue
+++ b/client/src/components/Chat.vue
@@ -1,69 +1,67 @@
div
- div
- .card.smallpad
- h4 Chat
- 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"] }}
+ 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"
+ )
+
+