control when password history shows
This commit is contained in:
parent
bc768b773b
commit
8b8bd88adf
2
jslib
2
jslib
|
@ -1 +1 @@
|
|||
Subproject commit cfa4664b3182840ec3f8dac6da8e8562d11468d3
|
||||
Subproject commit 13769a7fcba0d6ba67519b78e590019573776993
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue