1
0
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:
Kyle Spearrin
2018-07-30 22:02:01 -04:00
parent bc768b773b
commit 8b8bd88adf
3 changed files with 9 additions and 8 deletions

View File

@@ -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();