projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Try to switch off cleanGamesDb
[vchess.git]
/
client
/
src
/
views
/
Game.vue
diff --git
a/client/src/views/Game.vue
b/client/src/views/Game.vue
index
1b82d81
..
7971aab
100644
(file)
--- a/
client/src/views/Game.vue
+++ b/
client/src/views/Game.vue
@@
-343,13
+343,10
@@
export default {
this.drawOffer = "received";
break;
case "newchat":
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;
if (!document.getElementById("modalChat").checked)
document.getElementById("chatBtn").style.backgroundColor = "#c5fefe";
break;
- }
}
},
socketCloseListener: function() {
}
},
socketCloseListener: function() {
@@
-563,7
+560,7
@@
export default {
processMove: function(move) {
if (this.game.type == "corr" && move.color == this.game.mycolor)
{
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
return this.$set(this.game, "moveToUndo", move);
}
// Update storage (corr or live) if I play in the game