diff --git a/apps/web/src/app/core/event.service.ts b/apps/web/src/app/core/event.service.ts index de75ddc7b4..852a1f2fcb 100644 --- a/apps/web/src/app/core/event.service.ts +++ b/apps/web/src/app/core/event.service.ts @@ -352,6 +352,14 @@ export class EventService { case EventType.Organization_SponsorshipsSynced: msg = humanReadableMsg = this.i18nService.t("sponsorshipsSynced"); break; + case EventType.Organization_CollectionManagementUpdated: + msg = this.i18nService.t("modifiedCollectionManagement", this.formatOrganizationId(ev)); + humanReadableMsg = this.i18nService.t( + "modifiedCollectionManagement", + this.getShortId(ev.organizationId) + ); + break; + // Policies case EventType.Policy_Updated: { msg = this.i18nService.t("modifiedPolicyId", this.formatPolicyId(ev)); @@ -569,6 +577,13 @@ export class EventService { return a.outerHTML; } + private formatOrganizationId(ev: EventResponse) { + const shortId = this.getShortId(ev.organizationId); + const a = this.makeAnchor(shortId); + a.setAttribute("href", "#/organizations/" + ev.organizationId + "/settings/account"); + return a.outerHTML; + } + private formatPolicyId(ev: EventResponse) { const shortId = this.getShortId(ev.policyId); const a = this.makeAnchor(shortId); diff --git a/apps/web/src/locales/en/messages.json b/apps/web/src/locales/en/messages.json index 891551b590..604aedd38f 100644 --- a/apps/web/src/locales/en/messages.json +++ b/apps/web/src/locales/en/messages.json @@ -7404,6 +7404,15 @@ "passkeyNotCopiedAlert": { "message": "The passkey will not be copied to the cloned item. Do you want to continue cloning this item?" }, + "modifiedCollectionManagement": { + "message": "Modified collection management setting $ID$.", + "placeholders": { + "id": { + "content": "$1", + "example": "Unique ID" + } + } + }, "seeDetailedInstructions": { "message": "See detailed instructions on our help site at", "description": "This is followed a by a hyperlink to the help website." diff --git a/libs/common/src/enums/event-type.enum.ts b/libs/common/src/enums/event-type.enum.ts index 3232d885dc..8b541ec3cb 100644 --- a/libs/common/src/enums/event-type.enum.ts +++ b/libs/common/src/enums/event-type.enum.ts @@ -64,6 +64,7 @@ export enum EventType { Organization_EnabledKeyConnector = 1606, Organization_DisabledKeyConnector = 1607, Organization_SponsorshipsSynced = 1608, + Organization_CollectionManagementUpdated = 1609, Policy_Updated = 1700,