X-Git-Url: https://git.auder.net/img/rock_paper_scissors_lizard_spock.gif?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FChat.vue;h=7eeba5ac77b6ea22e29bc58d5d1e1df0a50634d8;hb=ac8f441c6441d827b43aabeb812cb4c79e9ee96b;hp=980cd177d1f977573a50d1babb11577b7d413722;hpb=9ca1e26b79ec1873aa6ac914013160f8593d52cf;p=vchess.git
diff --git a/client/src/components/Chat.vue b/client/src/components/Chat.vue
index 980cd177..7eeba5ac 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 chats" :class="classObject(chat)"
+ v-html="chat.name + ': ' + chat.msg")
+ p(v-for="chat in pastChats" :class="classObject(chat)"
+ v-html="chat.name + ': ' + chat.msg")