Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ehasa-frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WIMMA Lab 2019
Overflow
ehasa-frontend
Merge requests
!41
Notifications + small updates
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Notifications + small updates
notification-view
into
development
Overview
0
Commits
17
Pipelines
0
Changes
1
Merged
H9031
requested to merge
notification-view
into
development
5 years ago
Overview
0
Commits
17
Pipelines
0
Changes
1
Expand
Notifikaatit
Socket päivitys
Kartan piirtotyökalut rooleittain
Liittyminen ja lähteminen päivittää roolinäkymän
Salasanat piilossa
0
0
Merge request reports
Viewing commit
b7554c0f
Prev
Next
Show latest version
1 file
+
5
−
0
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
b7554c0f
Message for admin that notifications can only be sent if game is ongoing
· b7554c0f
Joni Laukka
authored
5 years ago
src/components/NotificationView.js
+
5
−
0
Options
@@ -86,6 +86,11 @@ export default class NotificationView extends React.Component {
@@ -86,6 +86,11 @@ export default class NotificationView extends React.Component {
<
/button
>
<
/button
>
<
/form
>
<
/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
>
<
/div
>
{
notifications
}
{
notifications
}
<
/div
>
<
/div
>
Loading