mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
show reivison dates for item edit
This commit is contained in:
@@ -366,6 +366,19 @@
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<ng-container *ngIf="editMode">
|
||||
<h3 class="mt-4">{{'other' | i18n}}</h3>
|
||||
<div class="small text-muted">
|
||||
<div>
|
||||
<b class="font-weight-semibold">{{'dateUpdated' | i18n}}:</b>
|
||||
{{cipher.revisionDate | date:'medium'}}
|
||||
</div>
|
||||
<div *ngIf="passwordRevisionDate">
|
||||
<b class="font-weight-semibold">{{'datePasswordUpdated' | i18n}}:</b>
|
||||
{{passwordRevisionDate | date:'medium'}}
|
||||
</div>
|
||||
</div>
|
||||
</ng-container>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" class="btn btn-primary btn-submit" [disabled]="form.loading">
|
||||
|
||||
@@ -33,6 +33,7 @@ export class AddEditComponent extends BaseAddEditComponent implements OnInit {
|
||||
totpDash: number;
|
||||
totpSec: number;
|
||||
totpLow: boolean;
|
||||
passwordRevisionDate: Date;
|
||||
|
||||
protected totpInterval: number;
|
||||
|
||||
@@ -48,6 +49,7 @@ export class AddEditComponent extends BaseAddEditComponent implements OnInit {
|
||||
|
||||
async ngOnInit() {
|
||||
await super.load();
|
||||
this.passwordRevisionDate = this.cipher.passwordRevisionDisplayDate;
|
||||
this.cleanUp();
|
||||
|
||||
this.isPremium = this.tokenService.getPremium();
|
||||
|
||||
Reference in New Issue
Block a user