]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Improve user delete confirmation modal
authorChocobozzz <me@florianbigard.com>
Fri, 12 Nov 2021 08:09:09 +0000 (09:09 +0100)
committerChocobozzz <me@florianbigard.com>
Fri, 12 Nov 2021 08:09:09 +0000 (09:09 +0100)
client/src/app/shared/shared-moderation/user-moderation-dropdown.component.ts

index 109232ccba03b1eaf06d4e463b58c572a2dc2d6d..b18d861d69e06d5c72776fcdcb6ec2806b190175 100644 (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)