1
0
Fork 0

Improve user delete confirmation modal

This commit is contained in:
Chocobozzz 2021-11-12 09:09:09 +01:00
parent 3ef5909aec
commit a7dbc60871
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 2 additions and 2 deletions

View File

@ -83,8 +83,8 @@ export class UserModerationDropdownComponent implements OnInit, OnChanges {
return
}
const message = $localize`If you remove this user, you will not be able to create another with the same username!`
const res = await this.confirmService.confirm(message, $localize`Delete`)
const message = $localize`If you remove user ${user.username}, you won't be able to create another with the same username!`
const res = await this.confirmService.confirm(message, $localize`Delete ${user.username}`)
if (res === false) return
this.userService.removeUser(user)