From: Chocobozzz Date: Fri, 12 Nov 2021 08:09:09 +0000 (+0100) Subject: Improve user delete confirmation modal X-Git-Tag: v4.0.0-rc.1~113 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=a7dbc608714ed1981783cd98fd6909866fa78236;hp=3ef5909aecf5aa33c9f1235df81d4f8c5c8948f6;p=github%2FChocobozzz%2FPeerTube.git Improve user delete confirmation modal --- 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 { 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)