1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-11 10:10:25 +01:00

PM-9924 add middle name field to Identity Edit Page (#10252)

This commit is contained in:
Jason Ng 2024-07-24 15:28:27 -04:00 committed by GitHub
parent 9421b6f0c0
commit 7a22afcae3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 0 deletions

View File

@ -23,6 +23,12 @@
</bit-label>
<input bitInput formControlName="firstName" />
</bit-form-field>
<bit-form-field>
<bit-label>
{{ "middleName" | i18n }}
</bit-label>
<input bitInput formControlName="middleName" />
</bit-form-field>
<bit-form-field>
<bit-label>
{{ "lastName" | i18n }}

View File

@ -53,6 +53,7 @@ export class IdentitySectionComponent implements OnInit {
protected identityForm = this.formBuilder.group({
title: [null],
firstName: [""],
middleName: [""],
lastName: [""],
username: [""],
company: [""],
@ -80,6 +81,7 @@ export class IdentitySectionComponent implements OnInit {
const data = new IdentityView();
data.title = value.title;
data.firstName = value.firstName;
data.middleName = value.middleName;
data.lastName = value.lastName;
data.username = value.username;
data.company = value.company;
@ -118,6 +120,7 @@ export class IdentitySectionComponent implements OnInit {
this.identityForm.setValue({
title: identity.title,
firstName: identity.firstName,
middleName: identity.middleName,
lastName: identity.lastName,
username: identity.username,
company: identity.company,