X-Git-Url: https://git.auder.net/assets/current/gitweb.js?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FChat.vue;h=18ce6fa959ddd505f92595ddae72d012548a6f9c;hb=0e16cb26f6380f57f1079ece9bdb654243073bde;hp=cd3c3c89b7932e6a7fac246f43fd35d9981e678c;hpb=63ca2b89cfe577efd168c6b2e26750cb01b66d64;p=vchess.git
diff --git a/client/src/components/Chat.vue b/client/src/components/Chat.vue
index cd3c3c89..18ce6fa9 100644
--- a/client/src/components/Chat.vue
+++ b/client/src/components/Chat.vue
@@ -1,9 +1,12 @@
-.card
+div
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")
+ 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")