From 0869b00a0e716a559c7a70ba2d854eed91689e33 Mon Sep 17 00:00:00 2001
From: Benjamin Auder <benjamin.auder@somewhere>
Date: Tue, 20 Nov 2018 02:59:03 +0100
Subject: [PATCH] Fix mode in PGN

---
 public/javascripts/components/game.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/public/javascripts/components/game.js b/public/javascripts/components/game.js
index 8e8e2770..96833bc0 100644
--- a/public/javascripts/components/game.js
+++ b/public/javascripts/components/game.js
@@ -616,6 +616,7 @@ Vue.component('my-game', {
 				this.oppConnected = true;
 				this.mycolor = color;
 				this.seek = false;
+				this.mode = "human";
 				if (!!moves && moves.length > 0) //imply continuation
 				{
 					const lastMove = moves[moves.length-1];
@@ -628,6 +629,7 @@ Vue.component('my-game', {
 			}
 			else //against computer
 			{
+				this.mode = "computer";
 				this.mycolor = Math.random() < 0.5 ? 'w' : 'b';
 				if (this.mycolor == 'b')
 					setTimeout(this.playComputerMove, 500);
-- 
2.44.0