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:
parent
9421b6f0c0
commit
7a22afcae3
@ -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 }}
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user