X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FGame.vue;h=6a67400dd17f7f3071df507778bff92b664ef6a8;hb=f21cd6d9c23da37d729f20ea4c08e56b1a7b10a1;hp=114b86b458ca13f72f0f8d1a706d2a00b6d78611;hpb=afc426016772300cc2812e8f96dd964bc6ae739d;p=vchess.git diff --git a/client/src/views/Game.vue b/client/src/views/Game.vue index 114b86b4..6a67400d 100644 --- a/client/src/views/Game.vue +++ b/client/src/views/Game.vue @@ -12,28 +12,24 @@ BaseGame(:game="game" :vr="vr" ref="basegame" @newmove="processMove" @gameover="gameOver") div Names: {{ game.players[0].name }} - {{ game.players[1].name }} - div Time: {{ virtualClocks[0] }} - {{ virtualClocks[1] }} + 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(