[PM-9634] update item history browser v2 (#10120)
* hide pw updated if not login or no history. update font of pw history
This commit is contained in:
parent
cf34f66156
commit
f63ab065a4
|
@ -11,7 +11,11 @@
|
|||
<span class="tw-font-bold">{{ "dateCreated" | i18n }}:</span>
|
||||
{{ cipher.creationDate | date: "medium" }}
|
||||
</p>
|
||||
<p class="tw-mb-1 tw-text-xs tw-text-muted tw-select-none">
|
||||
<p
|
||||
*ngIf="cipher.hasPasswordHistory && isLogin"
|
||||
class="tw-text-xs tw-text-muted tw-select-none"
|
||||
[ngClass]="{ 'tw-mb-3': cipher.hasPasswordHistory }"
|
||||
>
|
||||
<span class="tw-font-bold">{{ "datePasswordUpdated" | i18n }}:</span>
|
||||
{{ cipher.passwordRevisionDisplayDate | date: "medium" }}
|
||||
</p>
|
||||
|
@ -20,6 +24,7 @@
|
|||
class="tw-font-bold tw-no-underline"
|
||||
routerLink="/cipher-password-history"
|
||||
[queryParams]="{ cipherId: cipher.id }"
|
||||
bitTypography="body2"
|
||||
>
|
||||
{{ "passwordHistory" | i18n }}
|
||||
</a>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue