summaryrefslogtreecommitdiff
path: root/frontend/src/models/players.js
diff options
context:
space:
mode:
authorjbion <joffrey.bion@amadeus.com>2019-02-26 18:27:08 +0100
committerjbion <joffrey.bion@amadeus.com>2019-02-26 18:27:30 +0100
commitd80dc8c4cbe24f14f6c57463fb6aba11d2b5cad2 (patch)
treea8d6aba65573d72aaae968a7f341ab8a14b0a2e4 /frontend/src/models/players.js
parentMove wonder images to frontend (diff)
downloadseven-wonders-d80dc8c4cbe24f14f6c57463fb6aba11d2b5cad2.tar.gz
seven-wonders-d80dc8c4cbe24f14f6c57463fb6aba11d2b5cad2.tar.bz2
seven-wonders-d80dc8c4cbe24f14f6c57463fb6aba11d2b5cad2.zip
Hide start button for non-game owners and disable while we can't start
Diffstat (limited to 'frontend/src/models/players.js')
-rw-r--r--frontend/src/models/players.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/frontend/src/models/players.js b/frontend/src/models/players.js
index 2af6b0f7..587300f5 100644
--- a/frontend/src/models/players.js
+++ b/frontend/src/models/players.js
@@ -5,7 +5,9 @@ export type PlayerShape = {
username: string,
displayName: string,
index: number,
- ready: boolean
+ ready: boolean,
+ gameOwner: boolean,
+ user: boolean,
};
export type PlayerType = Record<PlayerShape>;
@@ -14,6 +16,8 @@ const PlayerRecord: PlayerType = Record({
displayName: null,
index: 0,
ready: false,
+ gameOwner: false,
+ user: false,
});
// $FlowFixMe
export class Player extends PlayerRecord {}
bgstack15