X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FGame.vue;h=984a66bff76c7fd8ecc65e92a2205fefe82847ae;hb=dc284d90d4f9228fc99e0b39394cbfded23657e5;hp=47605c47543b76370a06a9923461aeab449fa176;hpb=66d03f23c9ce085877c3f7272db44dc382762b5a;p=vchess.git diff --git a/client/src/views/Game.vue b/client/src/views/Game.vue index 47605c47..984a66bf 100644 --- a/client/src/views/Game.vue +++ b/client/src/views/Game.vue @@ -8,49 +8,32 @@ h3#abortBoxTitle.section {{ st.tr["Terminate game?"] }} button(@click="abortGame") {{ st.tr["Sorry I have to go"] }} button(@click="abortGame") {{ st.tr["Game seems over"] }} - button(@click="abortGame") {{ st.tr["Game is too boring"] }} BaseGame(:game="game" :vr="vr" ref="basegame" @newmove="processMove" @gameover="gameOver") - // TODO: also show players names - div Time: {{ virtualClocks[0] }} - {{ virtualClocks[1] }} + div Names: {{ game.players[0].name }} - {{ game.players[1].name }} + div(v-if="game.score=='*'") Time: {{ virtualClocks[0] }} - {{ virtualClocks[1] }} .button-group(v-if="game.mode!='analyze' && game.score=='*'") button(@click="offerDraw") Draw button(@click="() => abortGame()") Abort button(@click="resign") Resign - div(v-if="game.mode=='corr'") - textarea(v-show="score=='*' && vr.turn==game.mycolor" v-model="corrMsg") - div(v-show="cursor>=0") {{ moves[cursor].message }} + textarea(v-if="game.score=='*'" v-model="corrMsg") + Chat(:players="game.players") - -