From adecf4eebafd9a119c0ae821f16105da162f08ca Mon Sep 17 00:00:00 2001 From: Thomas Rittson <31796059+eliykat@users.noreply.github.com> Date: Wed, 20 Jul 2022 11:57:25 +1000 Subject: [PATCH] [EC-339] Add eventType and UI strings for Restore/Revoke OrgUser (#3137) --- apps/web/src/app/services/event.service.ts | 14 ++++++++++++++ libs/common/src/enums/eventType.ts | 2 ++ 2 files changed, 16 insertions(+) diff --git a/apps/web/src/app/services/event.service.ts b/apps/web/src/app/services/event.service.ts index 302fe2b9ce..abb97e3731 100644 --- a/apps/web/src/app/services/event.service.ts +++ b/apps/web/src/app/services/event.service.ts @@ -280,6 +280,20 @@ export class EventService { this.getShortId(ev.organizationUserId) ); break; + case EventType.OrganizationUser_Deactivated: + msg = this.i18nService.t("revokedUserId", this.formatOrgUserId(ev)); + humanReadableMsg = this.i18nService.t( + "revokedUserId", + this.getShortId(ev.organizationUserId) + ); + break; + case EventType.OrganizationUser_Activated: + msg = this.i18nService.t("restoredUserId", this.formatOrgUserId(ev)); + humanReadableMsg = this.i18nService.t( + "restoredUserId", + this.getShortId(ev.organizationUserId) + ); + break; // Org case EventType.Organization_Updated: msg = humanReadableMsg = this.i18nService.t("editedOrgSettings"); diff --git a/libs/common/src/enums/eventType.ts b/libs/common/src/enums/eventType.ts index d6268aea55..43a45fc32d 100644 --- a/libs/common/src/enums/eventType.ts +++ b/libs/common/src/enums/eventType.ts @@ -48,6 +48,8 @@ export enum EventType { OrganizationUser_AdminResetPassword = 1508, OrganizationUser_ResetSsoLink = 1509, OrganizationUser_FirstSsoLogin = 1510, + OrganizationUser_Deactivated = 1511, + OrganizationUser_Activated = 1512, Organization_Updated = 1600, Organization_PurgedVault = 1601,