mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-24 12:06:15 +01:00
[PM-10318] Add organization user deletion and leaving events to EventService (#11554)
This commit is contained in:
parent
081fe83d83
commit
1f0c1f1b44
@ -330,6 +330,20 @@ export class EventService {
|
||||
this.getShortId(ev.organizationUserId),
|
||||
);
|
||||
break;
|
||||
case EventType.OrganizationUser_Deleted:
|
||||
msg = this.i18nService.t("deletedUserId", this.formatOrgUserId(ev));
|
||||
humanReadableMsg = this.i18nService.t(
|
||||
"deletedUserId",
|
||||
this.getShortId(ev.organizationUserId),
|
||||
);
|
||||
break;
|
||||
case EventType.OrganizationUser_Left:
|
||||
msg = this.i18nService.t("userLeftOrganization", this.formatOrgUserId(ev));
|
||||
humanReadableMsg = this.i18nService.t(
|
||||
"userLeftOrganization",
|
||||
this.getShortId(ev.organizationUserId),
|
||||
);
|
||||
break;
|
||||
// Org
|
||||
case EventType.Organization_Updated:
|
||||
msg = humanReadableMsg = this.i18nService.t("editedOrgSettings");
|
||||
|
@ -9607,5 +9607,23 @@
|
||||
},
|
||||
"organizationUserDeletedDesc": {
|
||||
"message": "The user was removed from the organization and all associated user data has been deleted."
|
||||
},
|
||||
"deletedUserId": {
|
||||
"message": "Deleted user $ID$ - an owner / admin deleted the user account",
|
||||
"placeholders": {
|
||||
"id": {
|
||||
"content": "$1",
|
||||
"example": "First 8 Character of a GUID"
|
||||
}
|
||||
}
|
||||
},
|
||||
"userLeftOrganization": {
|
||||
"message": "User $ID$ left organization",
|
||||
"placeholders": {
|
||||
"id": {
|
||||
"content": "$1",
|
||||
"example": "First 8 Character of a GUID"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -56,6 +56,8 @@ export enum EventType {
|
||||
OrganizationUser_Restored = 1512,
|
||||
OrganizationUser_ApprovedAuthRequest = 1513,
|
||||
OrganizationUser_RejectedAuthRequest = 1514,
|
||||
OrganizationUser_Deleted = 1515,
|
||||
OrganizationUser_Left = 1516,
|
||||
|
||||
Organization_Updated = 1600,
|
||||
Organization_PurgedVault = 1601,
|
||||
|
Loading…
Reference in New Issue
Block a user