1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 09:43:23 +00:00

[PM-16707] - show password history for hidden field types (#13199)

* don't limit password history to login types

* don't display password change date if it's not present
This commit is contained in:
Jordan Aasen
2025-02-07 10:05:37 -08:00
committed by GitHub
parent f9e2c20243
commit 95ef2f523c

View File

@@ -10,15 +10,15 @@
<p
class="tw-text-xs tw-text-muted tw-select-none"
[ngClass]="{
'tw-mb-1 ': cipher.hasPasswordHistory && isLogin,
'tw-mb-0': !cipher.hasPasswordHistory || !isLogin,
'tw-mb-1 ': cipher.hasPasswordHistory,
'tw-mb-0': !cipher.hasPasswordHistory,
}"
>
<span class="tw-font-bold">{{ "dateCreated" | i18n }}:</span>
{{ cipher.creationDate | date: "medium" }}
</p>
<p
*ngIf="cipher.hasPasswordHistory && isLogin"
*ngIf="cipher.passwordRevisionDisplayDate"
class="tw-text-xs tw-text-muted tw-select-none"
[ngClass]="{ 'tw-mb-3': cipher.hasPasswordHistory }"
>
@@ -26,7 +26,7 @@
{{ cipher.passwordRevisionDisplayDate | date: "medium" }}
</p>
<button
*ngIf="cipher.hasPasswordHistory && isLogin"
*ngIf="cipher.hasPasswordHistory"
(click)="viewPasswordHistory()"
bitTypography="body2"
bitLink