mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 06:13:38 +00:00
[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:
@@ -11,7 +11,11 @@
|
|||||||
<span class="tw-font-bold">{{ "dateCreated" | i18n }}:</span>
|
<span class="tw-font-bold">{{ "dateCreated" | i18n }}:</span>
|
||||||
{{ cipher.creationDate | date: "medium" }}
|
{{ cipher.creationDate | date: "medium" }}
|
||||||
</p>
|
</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>
|
<span class="tw-font-bold">{{ "datePasswordUpdated" | i18n }}:</span>
|
||||||
{{ cipher.passwordRevisionDisplayDate | date: "medium" }}
|
{{ cipher.passwordRevisionDisplayDate | date: "medium" }}
|
||||||
</p>
|
</p>
|
||||||
@@ -20,6 +24,7 @@
|
|||||||
class="tw-font-bold tw-no-underline"
|
class="tw-font-bold tw-no-underline"
|
||||||
routerLink="/cipher-password-history"
|
routerLink="/cipher-password-history"
|
||||||
[queryParams]="{ cipherId: cipher.id }"
|
[queryParams]="{ cipherId: cipher.id }"
|
||||||
|
bitTypography="body2"
|
||||||
>
|
>
|
||||||
{{ "passwordHistory" | i18n }}
|
{{ "passwordHistory" | i18n }}
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import { Component, Input } from "@angular/core";
|
|||||||
import { RouterModule } from "@angular/router";
|
import { RouterModule } from "@angular/router";
|
||||||
|
|
||||||
import { JslibModule } from "@bitwarden/angular/jslib.module";
|
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 { CipherView } from "@bitwarden/common/vault/models/view/cipher.view";
|
||||||
import {
|
import {
|
||||||
CardComponent,
|
CardComponent,
|
||||||
@@ -27,4 +28,8 @@ import {
|
|||||||
})
|
})
|
||||||
export class ItemHistoryV2Component {
|
export class ItemHistoryV2Component {
|
||||||
@Input() cipher: CipherView;
|
@Input() cipher: CipherView;
|
||||||
|
|
||||||
|
get isLogin() {
|
||||||
|
return this.cipher.type === CipherType.Login;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user