X-Git-Url: https://git.auder.net/?a=blobdiff_plain;ds=sidebyside;f=client%2Fsrc%2Fcomponents%2FChat.vue;h=ae85e736320072cc03785bfa78303f1c15446d0f;hb=4b26ecb89dfd85ea1e5c664b0aedc5c11d41a635;hp=65e0dcb05e81077b803c30771dd92ef368bd0b32;hpb=b1ea21493a31105d17cd600ff1d26ee6fd9e3f6f;p=vchess.git
diff --git a/client/src/components/Chat.vue b/client/src/components/Chat.vue
index 65e0dcb0..ae85e736 100644
--- a/client/src/components/Chat.vue
+++ b/client/src/components/Chat.vue
@@ -1,51 +1,36 @@
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")
+ 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")