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
!26
Remove deleted users
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Remove deleted users
linafilippova/admin-fe:fix/delete-user
into
master
Overview
2
Commits
4
Pipelines
0
Changes
1
All threads resolved!
Hide all comments
Merged
Angelina Filippova
requested to merge
linafilippova/admin-fe:fix/delete-user
into
master
5 years ago
Overview
2
Commits
4
Pipelines
0
Changes
1
All threads resolved!
Hide all comments
Expand
Remove deleted users from list of fetched users
Update tests
0
0
Merge request reports
Viewing commit
c5ed314b
Prev
Next
Show latest version
1 file
+
1
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
c5ed314b
Apply suggestion to src/store/modules/users.js
· c5ed314b
Angelina Filippova
authored
5 years ago
src/store/modules/users.js
+
1
−
1
Options
@@ -66,7 +66,7 @@ const users = {
dispatch
(
'
FetchUsers
'
,
{
page
:
state
.
currentPage
})
},
async
DeleteUser
({
commit
,
dispatch
,
getters
,
state
},
user
)
{
const
{
data
}
=
await
deleteUser
(
user
.
nickname
,
getters
.
authHost
,
getters
.
token
)
const
{
nickname
}
=
await
deleteUser
(
user
.
nickname
,
getters
.
authHost
,
getters
.
token
)
const
users
=
state
.
fetchedUsers
.
filter
(
user
=>
user
.
nickname
!==
data
)
commit
(
'
SET_USERS
'
,
users
)
},
Loading