1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 15:53:27 +00:00

toggle cs hidden type visibility on add/edit

This commit is contained in:
Kyle Spearrin
2018-01-29 17:24:48 -05:00
parent 28d35db38b
commit 6d23338aa4
3 changed files with 24 additions and 9 deletions

View File

@@ -188,4 +188,9 @@ export class AddEditComponent implements OnChanges {
this.analytics.eventTrack.next({ action: 'Toggled Password on Edit' });
this.showPassword = !this.showPassword;
}
toggleFieldValue(field: FieldView) {
const f = (field as any);
f.showValue = !f.showValue;
}
}