X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FBaseGame.vue;h=83311cc1039150c084b3cb19de176ab63bf967d3;hb=a4480041556612060da8ba4cf30adc48895d746e;hp=e0bd9376740b68b2b8de5873b1bcac26122c7600;hpb=92b82defacccf9c4d3755924a71fcb584002ccc6;p=vchess.git diff --git a/client/src/components/BaseGame.vue b/client/src/components/BaseGame.vue index e0bd9376..83311cc1 100644 --- a/client/src/components/BaseGame.vue +++ b/client/src/components/BaseGame.vue @@ -16,7 +16,7 @@ button(@click="flip") Flip button(@click="gotoBegin") GotoBegin button(@click="gotoEnd") GotoEnd - #messageDiv.section-content {{ curMoveMessage() }} + #messageDiv.section-content(v-if="game.type=='corr'") {{ curMoveMessage() }} #fenDiv.section-content(v-if="showFen && !!vr") p#fenString.text-center {{ vr.getFen() }} #pgnDiv.section-content @@ -105,6 +105,9 @@ export default { return ""; return this.game.moves[this.cursor].message || ""; }, + setCurrentMessage: function(message) { + this.game.moves[this.game.moves.length-1].message = message; + }, download: function() { const content = this.getPgn(); // Prepare and trigger download link