Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-jams
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
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
savoirfairelinux
jami-jams
Commits
714a9336
Commit
714a9336
authored
3 years ago
by
Larbi Gharib
Committed by
Adrien Béraud
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Checkbox display revoked users
Change-Id: I8870e36d4bcbb9a05079715b89ae44f3d57aef78
parent
2a7328f7
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
jams-react-client/package.json
+2
-1
2 additions, 1 deletion
jams-react-client/package.json
jams-react-client/src/views/Users/Users.js
+16
-0
16 additions, 0 deletions
jams-react-client/src/views/Users/Users.js
with
18 additions
and
1 deletion
jams-react-client/package.json
+
2
−
1
View file @
714a9336
...
...
@@ -92,5 +92,6 @@
"not op_mini all"
],
"development"
:
[]
}
},
"proxy"
:
"http://localhost:8080"
}
This diff is collapsed.
Click to expand it.
jams-react-client/src/views/Users/Users.js
+
16
−
0
View file @
714a9336
...
...
@@ -18,6 +18,9 @@ import UserProfile from "views/UserProfile/UserProfile.js";
import
InfoIcon
from
"
@material-ui/icons/Info
"
;
import
BusinessOutlinedIcon
from
"
@material-ui/icons/BusinessOutlined
"
;
import
Search
from
"
@material-ui/icons/Search
"
;
import
Checkbox
from
'
@material-ui/core/Checkbox
'
;
import
FormGroup
from
'
@material-ui/core/FormGroup
'
;
import
FormControlLabel
from
'
@material-ui/core/FormControlLabel
'
;
import
axios
from
"
axios
"
;
import
configApiCall
from
"
api.js
"
;
import
auth
from
"
auth.js
"
;
...
...
@@ -80,6 +83,7 @@ export default function Users(props) {
const
[
createUser
,
setCreateUser
]
=
React
.
useState
(
false
);
const
[
loading
,
setLoading
]
=
React
.
useState
(
false
);
const
[
progress
,
setProgress
]
=
React
.
useState
(
0
);
const
[
showRevokedUsers
,
setShowRevokedUsers
]
=
React
.
useState
(
false
)
const
[
searchValue
,
setSearchValue
]
=
React
.
useState
(
""
);
...
...
@@ -186,6 +190,18 @@ export default function Users(props) {
<
/Button
>
<
/Link
>
)}
<
FormControlLabel
control
=
{
<
Checkbox
checked
=
{
showRevokedUsers
}
onChange
=
{()
=>
setShowRevokedUsers
(
!
showRevokedUsers
)}
inputProps
=
{{
'
aria-label
'
:
'
primary checkbox
'
}}
color
=
"
primary
"
/>
}
style
=
{{
marginLeft
:
"
1rem
"
}}
label
=
"
Display revoked users
"
/>
<
GridContainer
>
<
GridItem
xs
=
{
12
}
sm
=
{
12
}
md
=
{
6
}
>
{
!
noUsersFound
&&
(
...
...
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