X-Git-Url: https://git.auder.net/pieces/cr.svg?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FChat.vue;h=8c1e059a15b8e258b59313394bc23ce50f6b826b;hb=9a3049f3a48fa4b3627ef26ccdf213a8e550d478;hp=c5fde454c1036e2836b80281ab82402815c82831;hpb=9ddaf8da8743c50b9019888a82d84392913c60c9;p=vchess.git
diff --git a/client/src/components/Chat.vue b/client/src/components/Chat.vue
index c5fde454..8c1e059a 100644
--- a/client/src/components/Chat.vue
+++ b/client/src/components/Chat.vue
@@ -1,12 +1,11 @@
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.name + ': ' + chat.msg")
- p(v-for="chat in pastChats" :class="classObject(chat)"
- v-html="chat.name + ': ' + chat.msg")
+ @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")