Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cf-online-ui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
TO
cf-online-ui
Commits
68bb697f
Commit
68bb697f
authored
4 years ago
by
xaralis
Browse files
Options
Downloads
Patches
Plain Diff
fix: display chairman actions on home only for chairman
parent
10de10d1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/pages/Home.jsx
+30
-27
30 additions, 27 deletions
src/pages/Home.jsx
with
30 additions
and
27 deletions
src/pages/Home.jsx
+
30
−
27
View file @
68bb697f
...
@@ -143,6 +143,8 @@ const Home = () => {
...
@@ -143,6 +143,8 @@ const Home = () => {
return
<
BreakInProgress
/>;
return
<
BreakInProgress
/>;
}
}
const
displayActions
=
isAuthenticated
&&
user
.
role
===
"
chairman
"
;
return
(
return
(
<>
<>
<
article
className
=
"container container--wide pt-8 lg:py-24 cf2021"
>
<
article
className
=
"container container--wide pt-8 lg:py-24 cf2021"
>
...
@@ -151,41 +153,42 @@ const Home = () => {
...
@@ -151,41 +153,42 @@ const Home = () => {
<
h1
className
=
"head-alt-md lg:head-alt-lg mb-0"
>
<
h1
className
=
"head-alt-md lg:head-alt-lg mb-0"
>
Bod č.
{
programEntry
.
number
}
:
{
programEntry
.
title
}
Bod č.
{
programEntry
.
number
}
:
{
programEntry
.
title
}
</
h1
>
</
h1
>
<
DropdownMenu
right
triggerSize
=
"lg"
className
=
"pl-4"
>
{
displayActions
&&
(
<
DropdownMenuItem
<
DropdownMenu
right
triggerSize
=
"lg"
className
=
"pl-4"
>
onClick
=
{
()
=>
setShowProgramEditModal
(
true
)
}
icon
=
"ico--edit-pencil"
title
=
"Přejmenovat bod programu"
titleSize
=
"base"
iconSize
=
"base"
/>
{
programEntry
.
discussionOpened
&&
(
<
DropdownMenuItem
<
DropdownMenuItem
onClick
=
{
()
=>
setShow
CloseDiscussion
(
true
)
}
onClick
=
{
()
=>
setShow
ProgramEditModal
(
true
)
}
icon
=
"ico--
bubbles
"
icon
=
"ico--
edit-pencil
"
title
=
"
Ukončit rozprav
u"
title
=
"
Přejmenovat bod program
u"
titleSize
=
"base"
titleSize
=
"base"
iconSize
=
"base"
iconSize
=
"base"
/>
/>
)
}
{
programEntry
.
discussionOpened
&&
(
{
!
programEntry
.
discussionOpened
&&
(
<
DropdownMenuItem
onClick
=
{
()
=>
setShowCloseDiscussion
(
true
)
}
icon
=
"ico--bubbles"
title
=
"Ukončit rozpravu"
titleSize
=
"base"
iconSize
=
"base"
/>
)
}
{
!
programEntry
.
discussionOpened
&&
(
<
DropdownMenuItem
onClick
=
{
()
=>
setShowOpenDiscussion
(
true
)
}
icon
=
"ico--bubbles"
title
=
"Otevřít rozpravu"
titleSize
=
"base"
iconSize
=
"base"
/>
)
}
<
DropdownMenuItem
<
DropdownMenuItem
onClick
=
{
()
=>
setShow
OpenDiscussion
(
true
)
}
onClick
=
{
()
=>
setShow
EndProgramPoint
(
true
)
}
icon
=
"ico--
bubbles
"
icon
=
"ico--
switch
"
title
=
"
Otevřít rozp
ra
v
u"
title
=
"
Ukončit bod prog
ra
m
u"
titleSize
=
"base"
titleSize
=
"base"
iconSize
=
"base"
iconSize
=
"base"
/>
/>
)
}
</
DropdownMenu
>
<
DropdownMenuItem
)
}
onClick
=
{
()
=>
setShowEndProgramPoint
(
true
)
}
icon
=
"ico--switch"
title
=
"Ukončit bod programu"
titleSize
=
"base"
iconSize
=
"base"
/>
)}
</
DropdownMenu
>
</
div
>
</
div
>
<
iframe
<
iframe
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment