mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 01:03:35 +00:00
control when password history shows
This commit is contained in:
@@ -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