X-Git-Url: https://git.auder.net/assets/current/git-logo.png?a=blobdiff_plain;ds=sidebyside;f=client%2Fsrc%2Fcomponents%2FChat.vue;h=bce0ba0df5b52491ee7972cc323c3c2a94dc2330;hb=7c05a5f2297bea540c700ebceb0cc8b03a7f6775;hp=8c1e059a15b8e258b59313394bc23ce50f6b826b;hpb=9a3049f3a48fa4b3627ef26ccdf213a8e550d478;p=vchess.git
diff --git a/client/src/components/Chat.vue b/client/src/components/Chat.vue
index 8c1e059a..bce0ba0d 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['Type 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.name {{ chat.name || "@nonymous" }} :
+ span(
+ :class="classObject(chat)"
+ v-html="chat.msg"
+ )