diff --git a/apps/web/src/app/core/event.service.ts b/apps/web/src/app/core/event.service.ts index a13e5500f37..4556140afbb 100644 --- a/apps/web/src/app/core/event.service.ts +++ b/apps/web/src/app/core/event.service.ts @@ -138,6 +138,13 @@ export class EventService { this.getShortId(ev.cipherId) ); break; + case EventType.Cipher_ClientToggledCardNumberVisible: + msg = this.i18nService.t("viewedCardNumberItemId", this.formatCipherId(ev, options)); + humanReadableMsg = this.i18nService.t( + "viewedCardNumberItemId", + this.getShortId(ev.cipherId) + ); + break; case EventType.Cipher_ClientToggledCardCodeVisible: msg = this.i18nService.t("viewedSecurityCodeItemId", this.formatCipherId(ev, options)); humanReadableMsg = this.i18nService.t( diff --git a/apps/web/src/locales/en/messages.json b/apps/web/src/locales/en/messages.json index 906ea89dba8..d126bb611d9 100644 --- a/apps/web/src/locales/en/messages.json +++ b/apps/web/src/locales/en/messages.json @@ -2596,6 +2596,15 @@ } } }, + "viewedCardNumberItemId": { + "message": "Viewed Card Number for item $ID$.", + "placeholders": { + "id": { + "content": "$1", + "example": "Unique ID" + } + } + }, "viewedSecurityCodeItemId": { "message": "Viewed security code for item $ID$.", "placeholders": { diff --git a/libs/angular/src/components/view.component.ts b/libs/angular/src/components/view.component.ts index 2d4f384199d..8e724b9186a 100644 --- a/libs/angular/src/components/view.component.ts +++ b/libs/angular/src/components/view.component.ts @@ -257,7 +257,7 @@ export class ViewComponent implements OnDestroy, OnInit { this.showCardNumber = !this.showCardNumber; if (this.showCardNumber) { - this.eventService.collect(EventType.Cipher_ClientToggledCardCodeVisible, this.cipherId); + this.eventService.collect(EventType.Cipher_ClientToggledCardNumberVisible, this.cipherId); } }