1
0
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:
Rui Tomé 2024-11-08 11:23:24 +00:00 committed by GitHub
parent 081fe83d83
commit 1f0c1f1b44
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 34 additions and 0 deletions

View File

@ -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");

View File

@ -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"
}
}
}
}

View File

@ -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,