From a7dbc608714ed1981783cd98fd6909866fa78236 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 12 Nov 2021 09:09:09 +0100 Subject: [PATCH] Improve user delete confirmation modal --- .../shared-moderation/user-moderation-dropdown.component.ts | 4 ++-- 1 file 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 { 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)