X-Git-Url: https://git.auder.net/images/pieces/Cwda/bt.svg?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FChat.vue;h=6eb7ef31bcb7442b3326d89fd63125ec9aa46c4b;hb=e727fe31742dfb3e40eb222c94f4199e2be98453;hp=7205f3b76910a58ba26b9ca11c6661501fa28e24;hpb=6808d7a16ec1e761c6a2dffec2281c96953e4d89;p=vchess.git
diff --git a/client/src/components/Chat.vue b/client/src/components/Chat.vue
index 7205f3b7..6eb7ef31 100644
--- a/client/src/components/Chat.vue
+++ b/client/src/components/Chat.vue
@@ -1,11 +1,19 @@
div
- input#inputChat(type="text" :placeholder="st.tr['Chat here']"
- @keyup.enter="sendChat()")
+ button(@click="clearHistory()")
+ | {{ st.tr["Clear history"] }}
+ 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")
+ span(
+ :class="classObject(chat)"
+ v-html="chat.msg"
+ )