1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-10 13:23:34 +00:00

[PM-15156] Copy update on Organization member Delete modals (#12182)

* Rename 'Remove users' to 'Remove members' in bulk remove dialog

* Update warning messages for bulk delete dialog and single member deletion
This commit is contained in:
Rui Tomé
2024-12-03 12:58:26 +00:00
committed by GitHub
parent 194aa94302
commit 9c03cffe30
5 changed files with 27 additions and 8 deletions

View File

@@ -8,7 +8,7 @@
</bit-callout>
<ng-container *ngIf="!done">
<bit-callout type="warning" *ngIf="users.length > 0 && !error">
<p bitTypography="body1">{{ "deleteOrganizationUserWarning" | i18n }}</p>
<p bitTypography="body1">{{ "deleteManyOrganizationUsersWarningDesc" | i18n }}</p>
</bit-callout>
<bit-table>
<ng-container header>

View File

@@ -1,4 +1,4 @@
<bit-dialog dialogSize="large" [title]="'removeUsers' | i18n">
<bit-dialog dialogSize="large" [title]="'removeMembers' | i18n">
<ng-container bitDialogContent>
<bit-callout type="danger" *ngIf="users.length <= 0">
{{ "noSelectedUsersApplicable" | i18n }}
@@ -79,7 +79,7 @@
[disabled]="loading"
[bitAction]="submit"
>
{{ "removeUsers" | i18n }}
{{ "removeMembers" | i18n }}
</button>
<button bitButton type="button" buttonType="secondary" bitDialogClose>
{{ "close" | i18n }}

View File

@@ -579,7 +579,10 @@ export class MemberDialogComponent implements OnDestroy {
key: "deleteOrganizationUser",
placeholders: [this.params.name],
},
content: { key: "deleteOrganizationUserWarning" },
content: {
key: "deleteOrganizationUserWarningDesc",
placeholders: [this.params.name],
},
type: "warning",
acceptButtonText: { key: "delete" },
cancelButtonText: { key: "cancel" },

View File

@@ -742,7 +742,10 @@ export class MembersComponent extends BaseMembersComponent<OrganizationUserView>
key: "deleteOrganizationUser",
placeholders: [this.userNamePipe.transform(user)],
},
content: { key: "deleteOrganizationUserWarning" },
content: {
key: "deleteOrganizationUserWarningDesc",
placeholders: [this.userNamePipe.transform(user)],
},
type: "warning",
acceptButtonText: { key: "delete" },
cancelButtonText: { key: "cancel" },

View File

@@ -9715,9 +9715,19 @@
"description": "Title for the delete organization user dialog"
}
},
"deleteOrganizationUserWarning": {
"message": "When a member is deleted, their Bitwarden account and individual vault data will be permanently deleted. Collection data will remain in the organization. To reinstate them they must create an account and be onboarded again.",
"description": "Warning for the delete organization user dialog"
"deleteOrganizationUserWarningDesc": {
"message": "This will permanently delete all items owned by $NAME$. Collection items are not impacted.",
"description": "Warning description for the delete organization user dialog",
"placeholders": {
"name": {
"content": "$1",
"example": "John Doe"
}
}
},
"deleteManyOrganizationUsersWarningDesc": {
"message": "This will permanently delete all items owned by the following members. Collection items are not impacted.",
"description": "Warning description for the bulk delete organization users dialog"
},
"organizationUserDeleted": {
"message": "Deleted $NAME$",
@@ -9787,5 +9797,8 @@
},
"descriptorCode": {
"message": "Descriptor code"
},
"removeMembers": {
"message": "Remove members"
}
}