1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-13 06:43:35 +00:00

log viewed event when viewing a cipher on desktop (#15234)

This commit is contained in:
Nick Krantz
2025-06-17 15:53:53 -05:00
committed by Nick Krantz
parent 7908db39b3
commit 2bc34bc7ae

View File

@@ -364,7 +364,14 @@ export class VaultV2Component implements OnInit, OnDestroy {
cipher.collectionIds.includes(c.id),
) ?? null;
this.action = "view";
await this.go().catch(() => {});
await this.eventCollectionService.collect(
EventType.Cipher_ClientViewed,
cipher.id,
false,
cipher.organizationId,
);
}
async openAttachmentsDialog() {