Skip to content
Snippets Groups Projects
Commit b7554c0f authored by Joni Laukka's avatar Joni Laukka
Browse files

Message for admin that notifications can only be sent if game is ongoing

parent 366f1b35
No related branches found
No related tags found
3 merge requests!46Development to testing,!41Notifications + small updates,!39Notification view
This commit is part of merge request !41. Comments created here will be created in the context of that merge request.
......@@ -86,6 +86,11 @@ export default class NotificationView extends React.Component {
</button>
</form>
)}
{this.props.role === "admin" &&
(this.props.gameState === "ENDED" ||
this.props.gameState === "CREATED") && (
<p>Notifications can only be sent if the game is ongoing</p>
)}
</div>
{notifications}
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment