X-Git-Url: https://git.auder.net/pieces/Cwda/c_white_queen.svg?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FChat.vue;h=cbfb80597a9cc61ac2405705fb6d5bf2b217cc24;hb=dcd68c4108412f45b8ce119ae80ce8f6e296800b;hp=364f574ca7f9670d4f36b5c728bbd42652c78832;hpb=f21cd6d9c23da37d729f20ea4c08e56b1a7b10a1;p=vchess.git
diff --git a/client/src/components/Chat.vue b/client/src/components/Chat.vue
index 364f574c..cbfb8059 100644
--- a/client/src/components/Chat.vue
+++ b/client/src/components/Chat.vue
@@ -1,69 +1,73 @@
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['Type here']"
+ @keyup.enter="sendChat")
+ button#sendChatBtn(@click="sendChat") {{ st.tr["Send"] }}
+ p(v-for="chat in pastChats" :class="classObject(chat)"
+ v-html="chat.name + ': ' + chat.msg")
+ p(v-for="chat in chats" :class="classObject(chat)"
+ v-html="chat.name + ': ' + chat.msg")
+
+