diff --git a/webapp/src/components/Game/GameAction.css b/webapp/src/components/Game/GameAction.css index f581618..69f5a28 100644 --- a/webapp/src/components/Game/GameAction.css +++ b/webapp/src/components/Game/GameAction.css @@ -22,7 +22,9 @@ margin: 2px; } -.game-action.create:hover { +.game-action.create:hover, /* OR */ +.game-action.busy +{ background-color:#00b0ff60; } diff --git a/webapp/src/components/Game/GameAction/Create.jsx b/webapp/src/components/Game/GameAction/Create.jsx index 7f1efd7..5627077 100644 --- a/webapp/src/components/Game/GameAction/Create.jsx +++ b/webapp/src/components/Game/GameAction/Create.jsx @@ -14,7 +14,10 @@ export default function Create() { if (!ctx.hasCurrentUser) return alert("You must be one of the players"); - const request = ctx.get_GameProposalRequest() + if (ctx.fetching === true) + return + + const request = ctx.getGameProposalRequest() ctx.setFetching(true) @@ -28,7 +31,10 @@ export default function Create() { return (