Do not show eog modal if navigating and not analyzing
authorBenjamin Auder <benjamin.auder@somewhere>
Sat, 29 Feb 2020 17:13:01 +0000 (18:13 +0100)
committerBenjamin Auder <benjamin.auder@somewhere>
Sat, 29 Feb 2020 17:13:01 +0000 (18:13 +0100)
client/src/components/BaseGame.vue

index 9783c71..8500739 100644 (file)
@@ -368,8 +368,9 @@ export default {
             const message = getScoreMessage(score);
             if (!navigate && this.game.mode != "analyze")
               this.$emit("gameover", score, message);
-            // Just show score on screen (allow undo)
-            else this.showEndgameMsg(score + " . " + this.st.tr[message]);
+            else if (this.game.mode == "analyze")
+              // Just show score on screen (allow undo)
+              this.showEndgameMsg(score + " . " + this.st.tr[message]);
           }
           if (!navigate && this.game.mode != "analyze") {
             const L = this.moves.length;