From 2b0d3f9e0d32bb092a931c400027b627ab1d7817 Mon Sep 17 00:00:00 2001 From: Matt Gibson Date: Thu, 5 Aug 2021 14:30:47 -0400 Subject: [PATCH] Handle vault accessed event types (#1115) * Handle vault accessed event types * update jslib --- jslib | 2 +- src/app/services/event.service.ts | 7 +++++++ src/locales/en/messages.json | 18 +++++++++++++++--- 3 files changed, 23 insertions(+), 4 deletions(-) diff --git a/jslib b/jslib index cae26521cc..027747246c 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit cae26521ccf763a8e1d21581ed138a1544469fdf +Subproject commit 027747246c9c15b976ad1aa0a1df563afaa9de21 diff --git a/src/app/services/event.service.ts b/src/app/services/event.service.ts index b81de80fc3..7a6bef3fae 100644 --- a/src/app/services/event.service.ts +++ b/src/app/services/event.service.ts @@ -215,6 +215,9 @@ export class EventService { msg = this.i18nService.t('exportedOrganizationVault'); break; */ + case EventType.Organization_VaultAccessed: + msg = humanReadableMsg = this.i18nService.t('vaultAccessedByProvider'); + break; // Policies case EventType.Policy_Updated: msg = this.i18nService.t('modifiedPolicyId', this.formatPolicyId(ev)); @@ -257,6 +260,10 @@ export class EventService { msg = this.i18nService.t('removedOrganizationId', this.formatProviderOrganizationId(ev)); humanReadableMsg = this.i18nService.t('removedOrganizationId', this.getShortId(ev.providerOrganizationId)); break; + case EventType.ProviderOrganization_VaultAccessed: + msg = this.i18nService.t('accessedClientVault', this.formatProviderOrganizationId(ev)); + humanReadableMsg = this.i18nService.t('accessedClientVault', this.getShortId(ev.providerOrganizationId)); + break; default: break; } diff --git a/src/locales/en/messages.json b/src/locales/en/messages.json index 1a7e25fede..f838af601f 100644 --- a/src/locales/en/messages.json +++ b/src/locales/en/messages.json @@ -998,6 +998,9 @@ "purgedOrganizationVault": { "message": "Purged organization vault." }, + "vaultAccessedByProvider": { + "message": "Vault accessed by provider." + }, "purgeVaultDesc": { "message": "Proceed below to delete all items and folders in your vault. Items that belong to an organization that you share with will not be deleted." }, @@ -2588,7 +2591,7 @@ "placeholders": { "id": { "content": "$1", - "example": "John Smith" + "example": "Google" } } }, @@ -2597,7 +2600,7 @@ "placeholders": { "id": { "content": "$1", - "example": "John Smith" + "example": "Google" } } }, @@ -2606,7 +2609,16 @@ "placeholders": { "id": { "content": "$1", - "example": "John Smith" + "example": "Google" + } + } + }, + "accessedClientVault": { + "message": "Accessed $ID$ organization vault.", + "placeholders": { + "id": { + "content": "$1", + "example": "Google" } } },