aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-11-12 09:09:09 +0100
committerChocobozzz <me@florianbigard.com>2021-11-12 09:09:09 +0100
commita7dbc608714ed1981783cd98fd6909866fa78236 (patch)
tree5062ad87b76b17f5864c2a1f6f06693a234bf3b9 /client/src/app/shared
parent3ef5909aecf5aa33c9f1235df81d4f8c5c8948f6 (diff)
downloadPeerTube-a7dbc608714ed1981783cd98fd6909866fa78236.tar.gz
PeerTube-a7dbc608714ed1981783cd98fd6909866fa78236.tar.zst
PeerTube-a7dbc608714ed1981783cd98fd6909866fa78236.zip
Improve user delete confirmation modal
Diffstat (limited to 'client/src/app/shared')
-rw-r--r--client/src/app/shared/shared-moderation/user-moderation-dropdown.component.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/app/shared/shared-moderation/user-moderation-dropdown.component.ts b/client/src/app/shared/shared-moderation/user-moderation-dropdown.component.ts
index 109232ccb..b18d861d6 100644
--- a/client/src/app/shared/shared-moderation/user-moderation-dropdown.component.ts
+++ b/client/src/app/shared/shared-moderation/user-moderation-dropdown.component.ts
@@ -83,8 +83,8 @@ export class UserModerationDropdownComponent implements OnInit, OnChanges {
83 return 83 return
84 } 84 }
85 85
86 const message = $localize`If you remove this user, you will not be able to create another with the same username!` 86 const message = $localize`If you remove user ${user.username}, you won't be able to create another with the same username!`
87 const res = await this.confirmService.confirm(message, $localize`Delete`) 87 const res = await this.confirmService.confirm(message, $localize`Delete ${user.username}`)
88 if (res === false) return 88 if (res === false) return
89 89
90 this.userService.removeUser(user) 90 this.userService.removeUser(user)