Improve user delete confirmation modal
This commit is contained in:
parent
3ef5909aec
commit
a7dbc60871
|
@ -83,8 +83,8 @@ export class UserModerationDropdownComponent implements OnInit, OnChanges {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const message = $localize`If you remove this user, you will not be able to create another with the same username!`
|
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`)
|
const res = await this.confirmService.confirm(message, $localize`Delete ${user.username}`)
|
||||||
if (res === false) return
|
if (res === false) return
|
||||||
|
|
||||||
this.userService.removeUser(user)
|
this.userService.removeUser(user)
|
||||||
|
|
Loading…
Reference in New Issue