Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
54caf961
Commit
54caf961
authored
Apr 26, 2018
by
schwedenmut
Committed by
Filipa Lacerda
Apr 26, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve "User deletion modal with same info for delete user / delete user and contributions"
parent
d08f2005
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
7 deletions
+12
-7
app/assets/javascripts/pages/admin/users/components/delete_user_modal.vue
...cripts/pages/admin/users/components/delete_user_modal.vue
+2
-3
app/views/admin/users/_user.html.haml
app/views/admin/users/_user.html.haml
+2
-2
app/views/admin/users/show.html.haml
app/views/admin/users/show.html.haml
+2
-2
changelogs/unreleased/45451-user-deletion-modal-with-same-info-for-delete-user-or-delete-user-and-contributions.yml
...info-for-delete-user-or-delete-user-and-contributions.yml
+6
-0
No files found.
app/assets/javascripts/pages/admin/users/components/delete_user_modal.vue
View file @
54caf961
...
...
@@ -52,16 +52,15 @@
text
()
{
const
keepContributionsText
=
s__
(
`AdminArea|
You are about to permanently delete the user %{username}.
This will delete all of the issues, merge requests, and groups linked to them
.
Issues, merge requests, and groups linked to them will be transferred to a system-wide "Ghost-user"
.
To avoid data loss, consider using the %{strong_start}block user%{strong_end} feature instead.
Once you %{strong_start}Delete user%{strong_end}, it cannot be undone or recovered.`
);
const
deleteContributionsText
=
s__
(
`AdminArea|
You are about to permanently delete the user %{username}.
Issues, merge requests, and groups linked to them will be transferred to a system-wide "Ghost-user"
.
This will delete all of the issues, merge requests, and groups linked to them
.
To avoid data loss, consider using the %{strong_start}block user%{strong_end} feature instead.
Once you %{strong_start}Delete user%{strong_end}, it cannot be undone or recovered.`
);
return
sprintf
(
this
.
deleteContributions
?
deleteContributionsText
:
keepContributionsText
,
{
username
:
`<strong>
${
_
.
escape
(
this
.
username
)}
</strong>`
,
...
...
app/views/admin/users/_user.html.haml
View file @
54caf961
...
...
@@ -43,7 +43,7 @@
delete_user_url:
admin_user_path
(
user
),
block_user_url:
block_admin_user_path
(
user
),
username:
user
.
name
,
delete_contributions:
'false'
},
type:
'button'
}
delete_contributions:
false
},
type:
'button'
}
=
s_
(
'AdminUsers|Delete user'
)
%li
...
...
@@ -52,5 +52,5 @@
delete_user_url:
admin_user_path
(
user
,
hard_delete:
true
),
block_user_url:
block_admin_user_path
(
user
),
username:
user
.
name
,
delete_contributions:
'true'
},
type:
'button'
}
delete_contributions:
true
},
type:
'button'
}
=
s_
(
'AdminUsers|Delete user and contributions'
)
app/views/admin/users/show.html.haml
View file @
54caf961
...
...
@@ -183,7 +183,7 @@
delete_user_url:
admin_user_path
(
@user
),
block_user_url:
block_admin_user_path
(
@user
),
username:
@user
.
name
,
delete_contributions:
'false'
},
type:
'button'
}
delete_contributions:
false
},
type:
'button'
}
=
s_
(
'AdminUsers|Delete user'
)
-
else
-
if
@user
.
solo_owned_groups
.
present?
...
...
@@ -215,7 +215,7 @@
delete_user_url:
admin_user_path
(
@user
,
hard_delete:
true
),
block_user_url:
block_admin_user_path
(
@user
),
username:
@user
.
name
,
delete_contributions:
'true'
},
type:
'button'
}
delete_contributions:
true
},
type:
'button'
}
=
s_
(
'AdminUsers|Delete user and contributions'
)
-
else
%p
...
...
changelogs/unreleased/45451-user-deletion-modal-with-same-info-for-delete-user-or-delete-user-and-contributions.yml
0 → 100644
View file @
54caf961
---
title
:
Correct text and functionality for delete user / delete user and contributions
modal.
merge_request
:
18463
author
:
Marc Schwede
type
:
fixed
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment