mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +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>
|
||||||
</div>
|
</div>
|
||||||
<ng-container *ngIf="editMode">
|
<ng-container *ngIf="editMode">
|
||||||
<h3 class="mt-4">{{'other' | i18n}}</h3>
|
<div class="small text-muted mt-4">
|
||||||
<div class="small text-muted">
|
|
||||||
<div>
|
<div>
|
||||||
<b class="font-weight-semibold">{{'dateUpdated' | i18n}}:</b>
|
<b class="font-weight-semibold">{{'dateUpdated' | i18n}}:</b>
|
||||||
{{cipher.revisionDate | date:'medium'}}
|
{{cipher.revisionDate | date:'medium'}}
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="passwordRevisionDate">
|
<div *ngIf="showRevisionDate">
|
||||||
<b class="font-weight-semibold">{{'datePasswordUpdated' | i18n}}:</b>
|
<b class="font-weight-semibold">{{'datePasswordUpdated' | i18n}}:</b>
|
||||||
{{passwordRevisionDate | date:'medium'}}
|
{{cipher.passwordRevisionDisplayDate | date:'medium'}}
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="cipher.hasPasswordHistory">
|
<div *ngIf="hasPasswordHistory">
|
||||||
<b class="font-weight-semibold">{{'passwordHistory' | i18n}}:</b>
|
<b class="font-weight-semibold">{{'passwordHistory' | i18n}}:</b>
|
||||||
<a href="#" appStopClick (click)="viewHistory()" title="{{'view' | i18n}}">
|
<a href="#" appStopClick (click)="viewHistory()" title="{{'view' | i18n}}">
|
||||||
{{cipher.passwordHistory.length}}
|
{{cipher.passwordHistory.length}}
|
||||||
|
|||||||
@@ -33,7 +33,8 @@ export class AddEditComponent extends BaseAddEditComponent implements OnInit {
|
|||||||
totpDash: number;
|
totpDash: number;
|
||||||
totpSec: number;
|
totpSec: number;
|
||||||
totpLow: boolean;
|
totpLow: boolean;
|
||||||
passwordRevisionDate: Date;
|
showRevisionDate = false;
|
||||||
|
hasPasswordHistory = false;
|
||||||
viewingPasswordHistory = false;
|
viewingPasswordHistory = false;
|
||||||
|
|
||||||
protected totpInterval: number;
|
protected totpInterval: number;
|
||||||
@@ -50,7 +51,8 @@ export class AddEditComponent extends BaseAddEditComponent implements OnInit {
|
|||||||
|
|
||||||
async ngOnInit() {
|
async ngOnInit() {
|
||||||
await super.load();
|
await super.load();
|
||||||
this.passwordRevisionDate = this.cipher.passwordRevisionDisplayDate;
|
this.showRevisionDate = this.cipher.passwordRevisionDisplayDate != null;
|
||||||
|
this.hasPasswordHistory = this.cipher.hasPasswordHistory;
|
||||||
this.cleanUp();
|
this.cleanUp();
|
||||||
|
|
||||||
this.isPremium = this.tokenService.getPremium();
|
this.isPremium = this.tokenService.getPremium();
|
||||||
|
|||||||
Reference in New Issue
Block a user