From d8b1800bcec983faabc34bdb1057ef880488a160 Mon Sep 17 00:00:00 2001
From: Benjamin Auder <benjamin.auder@somewhere>
Date: Fri, 14 Feb 2020 17:43:50 +0100
Subject: [PATCH] Give move notation with confirm message in Game (corr)

---
 client/src/translations/en.js | 1 +
 client/src/translations/es.js | 1 +
 client/src/translations/fr.js | 1 +
 client/src/views/Game.vue     | 2 +-
 4 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/client/src/translations/en.js b/client/src/translations/en.js
index b912ef39..0393101e 100644
--- a/client/src/translations/en.js
+++ b/client/src/translations/en.js
@@ -52,6 +52,7 @@ export const translations =
   "Logout": "Logout",
   "Logout successful!": "Logout successful!",
   "Modifications applied!": "Modifications applied!",
+  "Move played:": "Move played:",
   "Mutual agreement": "Mutual agreement",
   "My games": "My games",
   "My problems": "My problems",
diff --git a/client/src/translations/es.js b/client/src/translations/es.js
index cbc5c640..2eca34b4 100644
--- a/client/src/translations/es.js
+++ b/client/src/translations/es.js
@@ -52,6 +52,7 @@ export const translations =
   "Logout": "Logout",
   "Logout successful!": "¡Desconexión exitosa!",
   "Modifications applied!": "¡Modificaciones aplicadas!",
+  "Move played:": "Movimiento jugado:",
   "Mutual agreement": "Acuerdo mutuo",
   "My games": "Mis partidas",
   "My problems": "Mis problemas",
diff --git a/client/src/translations/fr.js b/client/src/translations/fr.js
index 1510f44c..dbebfbb4 100644
--- a/client/src/translations/fr.js
+++ b/client/src/translations/fr.js
@@ -52,6 +52,7 @@ export const translations =
   "Logout": "Logout",
   "Logout successful!": "Déconnection réussie !",
   "Modifications applied!": "Modifications effectuées !",
+  "Move played:": "Coup joué :",
   "Mutual agreement": "Accord mutuel",
   "My games": "Mes parties",
   "My problems": "Mes problèmes",
diff --git a/client/src/views/Game.vue b/client/src/views/Game.vue
index 1b82d81f..a79cf803 100644
--- a/client/src/views/Game.vue
+++ b/client/src/views/Game.vue
@@ -563,7 +563,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
-- 
2.44.0