From 00775256e2ac2242f452353bf3f9c4598567045c Mon Sep 17 00:00:00 2001 From: djmil Date: Wed, 1 Nov 2023 10:34:45 +0100 Subject: [PATCH] implementation --- webapp/src/components/Game/GameAction.css | 4 +++- .../src/components/Game/GameAction/Create.jsx | 24 +++++++++++-------- 2 files changed, 17 insertions(+), 11 deletions(-) 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 (