From d80dc8c4cbe24f14f6c57463fb6aba11d2b5cad2 Mon Sep 17 00:00:00 2001 From: jbion Date: Tue, 26 Feb 2019 18:27:08 +0100 Subject: Hide start button for non-game owners and disable while we can't start --- frontend/src/components/lobby/Lobby.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'frontend/src/components/lobby') diff --git a/frontend/src/components/lobby/Lobby.jsx b/frontend/src/components/lobby/Lobby.jsx index df6557af..f352ab83 100644 --- a/frontend/src/components/lobby/Lobby.jsx +++ b/frontend/src/components/lobby/Lobby.jsx @@ -1,5 +1,5 @@ //@flow -import { Button } from '@blueprintjs/core'; +import { Button, Classes, Intent } from '@blueprintjs/core'; import { List } from 'immutable'; import React, { Component } from 'react'; import { connect } from 'react-redux'; @@ -25,7 +25,8 @@ class LobbyPresenter extends Component {

{currentGame.name + ' — Lobby'}

- + {currentPlayer.gameOwner &&
); } -- cgit