X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FBaseGame.vue;h=83311cc1039150c084b3cb19de176ab63bf967d3;hp=100eadf00ce087181e6fb2a1853897a447713060;hb=a4480041556612060da8ba4cf30adc48895d746e;hpb=6d68309ae2aa62cac650967d18cd7f397e70532e diff --git a/client/src/components/BaseGame.vue b/client/src/components/BaseGame.vue index 100eadf0..83311cc1 100644 --- a/client/src/components/BaseGame.vue +++ b/client/src/components/BaseGame.vue @@ -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