mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
control when password history shows
This commit is contained in:
2
jslib
2
jslib
Submodule jslib updated: cfa4664b31...13769a7fcb
@@ -367,17 +367,16 @@
|
||||
</div>
|
||||
</div>
|
||||
<ng-container *ngIf="editMode">
|
||||
<h3 class="mt-4">{{'other' | i18n}}</h3>
|
||||
<div class="small text-muted">
|
||||
<div class="small text-muted mt-4">
|
||||
<div>
|
||||
<b class="font-weight-semibold">{{'dateUpdated' | i18n}}:</b>
|
||||
{{cipher.revisionDate | date:'medium'}}
|
||||
</div>
|
||||
<div *ngIf="passwordRevisionDate">
|
||||
<div *ngIf="showRevisionDate">
|
||||
<b class="font-weight-semibold">{{'datePasswordUpdated' | i18n}}:</b>
|
||||
{{passwordRevisionDate | date:'medium'}}
|
||||
{{cipher.passwordRevisionDisplayDate | date:'medium'}}
|
||||
</div>
|
||||
<div *ngIf="cipher.hasPasswordHistory">
|
||||
<div *ngIf="hasPasswordHistory">
|
||||
<b class="font-weight-semibold">{{'passwordHistory' | i18n}}:</b>
|
||||
<a href="#" appStopClick (click)="viewHistory()" title="{{'view' | i18n}}">
|
||||
{{cipher.passwordHistory.length}}
|
||||
|
||||
@@ -33,7 +33,8 @@ export class AddEditComponent extends BaseAddEditComponent implements OnInit {
|
||||
totpDash: number;
|
||||
totpSec: number;
|
||||
totpLow: boolean;
|
||||
passwordRevisionDate: Date;
|
||||
showRevisionDate = false;
|
||||
hasPasswordHistory = false;
|
||||
viewingPasswordHistory = false;
|
||||
|
||||
protected totpInterval: number;
|
||||
@@ -50,7 +51,8 @@ export class AddEditComponent extends BaseAddEditComponent implements OnInit {
|
||||
|
||||
async ngOnInit() {
|
||||
await super.load();
|
||||
this.passwordRevisionDate = this.cipher.passwordRevisionDisplayDate;
|
||||
this.showRevisionDate = this.cipher.passwordRevisionDisplayDate != null;
|
||||
this.hasPasswordHistory = this.cipher.hasPasswordHistory;
|
||||
this.cleanUp();
|
||||
|
||||
this.isPremium = this.tokenService.getPremium();
|
||||
|
||||
Reference in New Issue
Block a user