Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
admin-fe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
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
Pleroma
admin-fe
Merge requests
!147
Admin manage pending accounts
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Admin manage pending accounts
mkfain/admin-fe:pending-approvals
into
develop
Overview
16
Commits
14
Pipelines
12
Changes
12
Merged
MK Fain
requested to merge
mkfain/admin-fe:pending-approvals
into
develop
4 years ago
Overview
13
Commits
14
Pipelines
12
Changes
12
Expand
A few new features for Users view related to pending accounts:
Adds new "pending" status for filters and labels
Ability to approve and reject pending accounts (rejecting an account deletes it)
Ability to view "reason for joining" when filtered by pending accounts (truncated to 100 chars)
Ability to view full "reason for joining" on user show page
Edited
4 years ago
by
MK Fain
0
0
Merge request reports
Compare
develop
version 11
882cb8f3
4 years ago
version 10
a0e49d31
4 years ago
version 9
557add41
4 years ago
version 8
032c6788
4 years ago
version 7
9b3eb01a
4 years ago
version 6
324ea153
4 years ago
version 5
979577f7
4 years ago
version 4
12bc48c1
4 years ago
version 3
665c237c
4 years ago
version 2
ad7c3fb4
4 years ago
version 1
769cfb9e
4 years ago
develop (base)
and
latest version
latest version
4377b5ab
14 commits,
4 years ago
version 11
882cb8f3
13 commits,
4 years ago
version 10
a0e49d31
11 commits,
4 years ago
version 9
557add41
10 commits,
4 years ago
version 8
032c6788
9 commits,
4 years ago
version 7
9b3eb01a
8 commits,
4 years ago
version 6
324ea153
7 commits,
4 years ago
version 5
979577f7
6 commits,
4 years ago
version 4
12bc48c1
5 commits,
4 years ago
version 3
665c237c
4 commits,
4 years ago
version 2
ad7c3fb4
3 commits,
4 years ago
version 1
769cfb9e
2 commits,
4 years ago
12 files
+
200
−
32
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
12
Search (e.g. *.vue) (Ctrl+P)
src/api/__mocks__/users.js
+
12
−
3
Options
export
let
users
=
[
{
active
:
true
,
deactivated
:
false
,
id
:
'
2
'
,
nickname
:
'
allis
'
,
local
:
true
,
external
:
false
,
roles
:
{
admin
:
true
,
moderator
:
false
},
tags
:
[]
},
{
active
:
true
,
deactivated
:
false
,
id
:
'
10
'
,
nickname
:
'
bob
'
,
local
:
false
,
external
:
true
,
roles
:
{
admin
:
false
,
moderator
:
false
},
tags
:
[
'
mrf_tag:sandbox
'
]
},
{
active
:
false
,
deactivated
:
true
,
id
:
'
abc
'
,
nickname
:
'
john
'
,
local
:
true
,
external
:
false
,
roles
:
{
admin
:
false
,
moderator
:
false
},
tags
:
[
'
mrf_tag:media-strip
'
]
}
{
active
:
true
,
approval_pending
:
false
,
deactivated
:
false
,
id
:
'
2
'
,
nickname
:
'
allis
'
,
local
:
true
,
external
:
false
,
roles
:
{
admin
:
true
,
moderator
:
false
},
tags
:
[]
},
{
active
:
true
,
approval_pending
:
false
,
deactivated
:
false
,
id
:
'
10
'
,
nickname
:
'
bob
'
,
local
:
false
,
external
:
true
,
roles
:
{
admin
:
false
,
moderator
:
false
},
tags
:
[
'
mrf_tag:sandbox
'
]
},
{
active
:
false
,
approval_pending
:
false
,
deactivated
:
true
,
id
:
'
abc
'
,
nickname
:
'
john
'
,
local
:
true
,
external
:
false
,
roles
:
{
admin
:
false
,
moderator
:
false
},
tags
:
[
'
mrf_tag:media-strip
'
]
},
{
active
:
true
,
approval_pending
:
true
,
deactivated
:
false
,
id
:
'
100
'
,
nickname
:
'
sally
'
,
local
:
true
,
external
:
false
,
roles
:
{
admin
:
false
,
moderator
:
false
},
tags
:
[]
}
]
const
userProfile
=
{
avatar
:
'
avatar.jpg
'
,
nickname
:
'
allis
'
,
id
:
'
2
'
,
tags
:
[],
roles
:
{
admin
:
true
,
moderator
:
false
},
local
:
true
,
external
:
false
}
@@ -85,6 +86,14 @@ export async function deactivateUsers(nicknames, authHost, token) {
return
Promise
.
resolve
({
data
:
response
})
}
export
async
function
approveUserAccount
(
nicknames
,
authHost
,
token
)
{
const
response
=
nicknames
.
map
(
nickname
=>
{
const
currentUser
=
users
.
find
(
user
=>
user
.
nickname
===
nickname
)
return
{
...
currentUser
,
approval_pending
:
false
}
})
return
Promise
.
resolve
({
data
:
response
})
}
export
async
function
deleteRight
(
nickname
,
right
,
authHost
,
token
)
{
return
Promise
.
resolve
({
data
:
{
[
`is_
${
right
}
`
]:
false
}
Loading