diff --git a/libs/vault/src/cipher-view/item-history/item-history-v2.component.html b/libs/vault/src/cipher-view/item-history/item-history-v2.component.html index c1e11b9e58b..0515a4b24bc 100644 --- a/libs/vault/src/cipher-view/item-history/item-history-v2.component.html +++ b/libs/vault/src/cipher-view/item-history/item-history-v2.component.html @@ -11,7 +11,11 @@ {{ "dateCreated" | i18n }}: {{ cipher.creationDate | date: "medium" }}
-+
{{ "datePasswordUpdated" | i18n }}: {{ cipher.passwordRevisionDisplayDate | date: "medium" }}
@@ -20,6 +24,7 @@ class="tw-font-bold tw-no-underline" routerLink="/cipher-password-history" [queryParams]="{ cipherId: cipher.id }" + bitTypography="body2" > {{ "passwordHistory" | i18n }} diff --git a/libs/vault/src/cipher-view/item-history/item-history-v2.component.ts b/libs/vault/src/cipher-view/item-history/item-history-v2.component.ts index 830e37da61e..539c3a1c369 100644 --- a/libs/vault/src/cipher-view/item-history/item-history-v2.component.ts +++ b/libs/vault/src/cipher-view/item-history/item-history-v2.component.ts @@ -3,6 +3,7 @@ import { Component, Input } from "@angular/core"; import { RouterModule } from "@angular/router"; import { JslibModule } from "@bitwarden/angular/jslib.module"; +import { CipherType } from "@bitwarden/common/vault/enums"; import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view"; import { CardComponent, @@ -27,4 +28,8 @@ import { }) export class ItemHistoryV2Component { @Input() cipher: CipherView; + + get isLogin() { + return this.cipher.type === CipherType.Login; + } }