Handle vault accessed event types (#1115)

* Handle vault accessed event types

* update jslib
This commit is contained in:
Matt Gibson 2021-08-05 14:30:47 -04:00 committed by GitHub
parent 75b0b7a1e1
commit 2b0d3f9e0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 23 additions and 4 deletions

2
jslib

@ -1 +1 @@
Subproject commit cae26521ccf763a8e1d21581ed138a1544469fdf
Subproject commit 027747246c9c15b976ad1aa0a1df563afaa9de21

View File

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

View File

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