X-Git-Url: https://git.auder.net/js/rpsls.js?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FGame.vue;h=3c4ac0835db753f17189079957ce32aa122afebf;hb=a1c48034e89a8d5af915ef3874c84888a281ca37;hp=262823dfffbdf8873979e6ad2eb65684f803fbcd;hpb=06e79b0783d6e9962ca6b2a25f62d46f46fa5c8b;p=vchess.git
diff --git a/client/src/views/Game.vue b/client/src/views/Game.vue
index 262823df..3c4ac083 100644
--- a/client/src/views/Game.vue
+++ b/client/src/views/Game.vue
@@ -1,21 +1,22 @@
main
+ input#modalChat.modal(type="checkbox" @change="toggleChat")
+ div(role="dialog" aria-labelledby="inputChat")
+ #chat.card
+ label.modal-close(for="modalChat")
+ Chat(:players="game.players" :pastChats="game.chats"
+ @newchat-sent="finishSendChat" @newchat-received="processChat")
.row
- .col-sm-12.col-md-3
- Chat(:players="game.players")
- .col-sm-12.col-md-9
- BaseGame(:game="game" :vr="vr" ref="basegame"
- @newmove="processMove" @gameover="gameOver")
- .row
- .col-sm-12.col-md-9.col-md-offset-3
- .button-group(v-if="game.mode!='analyze' && game.score=='*'")
+ .col-sm-12.col-md-9.col-md-offset-3.col-lg-10.col-lg-offset-2
+ #actions(v-if="game.mode!='analyze' && game.score=='*'")
button(@click="offerDraw") Draw
button(@click="abortGame") Abort
button(@click="resign") Resign
+ button#chatBtn(onClick="doClick('modalChat')") Chat
div Names: {{ game.players[0].name }} - {{ game.players[1].name }}
div(v-if="game.score=='*'") Time: {{ virtualClocks[0] }} - {{ virtualClocks[1] }}
- div(v-if="game.type=='corr'") {{ game.corrMsg }}
- textarea(v-if="game.score=='*'" v-model="corrMsg")
+ BaseGame(:game="game" :vr="vr" ref="basegame"
+ @newmove="processMove" @gameover="gameOver")