mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 22:03:36 +00:00
[EC-675] Display the Event for “Viewed Card Number for item item-identifier” (#3976)
* [EC-675] Add missing Event capture for viewing item Card Number * [EC-675] Fix correct event type for viewing item Card Number * Update apps/web/src/locales/en/messages.json Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com> Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com>
This commit is contained in:
@@ -138,6 +138,13 @@ export class EventService {
|
|||||||
this.getShortId(ev.cipherId)
|
this.getShortId(ev.cipherId)
|
||||||
);
|
);
|
||||||
break;
|
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:
|
case EventType.Cipher_ClientToggledCardCodeVisible:
|
||||||
msg = this.i18nService.t("viewedSecurityCodeItemId", this.formatCipherId(ev, options));
|
msg = this.i18nService.t("viewedSecurityCodeItemId", this.formatCipherId(ev, options));
|
||||||
humanReadableMsg = this.i18nService.t(
|
humanReadableMsg = this.i18nService.t(
|
||||||
|
|||||||
@@ -2596,6 +2596,15 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"viewedCardNumberItemId": {
|
||||||
|
"message": "Viewed Card Number for item $ID$.",
|
||||||
|
"placeholders": {
|
||||||
|
"id": {
|
||||||
|
"content": "$1",
|
||||||
|
"example": "Unique ID"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"viewedSecurityCodeItemId": {
|
"viewedSecurityCodeItemId": {
|
||||||
"message": "Viewed security code for item $ID$.",
|
"message": "Viewed security code for item $ID$.",
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
|
|||||||
@@ -257,7 +257,7 @@ export class ViewComponent implements OnDestroy, OnInit {
|
|||||||
|
|
||||||
this.showCardNumber = !this.showCardNumber;
|
this.showCardNumber = !this.showCardNumber;
|
||||||
if (this.showCardNumber) {
|
if (this.showCardNumber) {
|
||||||
this.eventService.collect(EventType.Cipher_ClientToggledCardCodeVisible, this.cipherId);
|
this.eventService.collect(EventType.Cipher_ClientToggledCardNumberVisible, this.cipherId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user