X-Git-Url: https://git.auder.net/assets/icon_infos.svg?a=blobdiff_plain;ds=sidebyside;f=client%2Fsrc%2Fviews%2FGame.vue;h=7971aabe5a4ca939877356956c03b74210ea15e7;hb=0f7011a242853b1d23a8cd279bb3c3373813198f;hp=1b82d81f30db8c5d9be0e1d9a55fe2295cdc67d6;hpb=604b951e4dc4647da9b251c5fff4ecb4c7b1b298;p=vchess.git diff --git a/client/src/views/Game.vue b/client/src/views/Game.vue index 1b82d81f..7971aabe 100644 --- a/client/src/views/Game.vue +++ b/client/src/views/Game.vue @@ -343,13 +343,10 @@ export default { this.drawOffer = "received"; break; case "newchat": - { - const chat = data.data; - this.newChat = chat; + this.newChat = data.data; if (!document.getElementById("modalChat").checked) document.getElementById("chatBtn").style.backgroundColor = "#c5fefe"; break; - } } }, socketCloseListener: function() { @@ -563,7 +560,7 @@ export default { processMove: function(move) { if (this.game.type == "corr" && move.color == this.game.mycolor) { - if (!confirm(this.st.tr["Are you sure?"])) + if (!confirm(this.st.tr["Move played:"] + " " + move.notation + "\n" + this.st.tr["Are you sure?"])) return this.$set(this.game, "moveToUndo", move); } // Update storage (corr or live) if I play in the game