From b7554c0f9d0a4c38afa5d564ff974841627a693f Mon Sep 17 00:00:00 2001
From: Joni Laukka <joni.laukka.overflow@gmail.com>
Date: Thu, 18 Jul 2019 10:58:12 +0300
Subject: [PATCH] Message for admin that notifications can only be sent if game
 is ongoing

---
 src/components/NotificationView.js | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/components/NotificationView.js b/src/components/NotificationView.js
index 59731f9..d63d025 100644
--- a/src/components/NotificationView.js
+++ b/src/components/NotificationView.js
@@ -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>
-- 
GitLab