1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 00:03:56 +00:00

[PM-18520] - Update desktop cipher forms to use the same UI as web app and extension - (#13992)

* WIP - cipher form refactor

* cipher clone

* cipher clone

* finalize item view and form changes

* fix tests

* hide changes behind feature flag

* set flag to false

* create vault items v2. add button selector

* revert change to flag and vault items

* add attachments

* revert change to tsconfig

* move module

* fix modules

* cleanup

* fix import

* fix import

* fix import

* remove showForm

* update feature flag

* wip - cleanup

* fix up services

* cleanup

* fix type errors

* fix lint errors

* add dialog component

* revert changes to menu

* revert changes to menu

* fix vault-items-v2

* set feature flag to FALSE

* add missing i18n keys. fix collection state

* remove generator. update modules. bug fix

* fix restricted imports

* mark method as deprecated. add uri arg back

* fix shared.module

* fix shared.module

* fix shared.module

* add uri

* check and prompt for premium when opening attachments dialog

* move VaultItemDialogResult back

* fix import in spec file

* update copy functions

* fix MP reprompt issue
This commit is contained in:
Jordan Aasen
2025-04-23 11:13:44 -07:00
committed by GitHub
parent ef80c23707
commit b589951c90
36 changed files with 1569 additions and 89 deletions

View File

@@ -132,22 +132,22 @@ export class IdentitySectionComponent implements OnInit {
private initFromExistingCipher(existingIdentity: IdentityView) {
this.identityForm.patchValue({
firstName: this.initialValues.firstName ?? existingIdentity.firstName,
middleName: this.initialValues.middleName ?? existingIdentity.middleName,
lastName: this.initialValues.lastName ?? existingIdentity.lastName,
company: this.initialValues.company ?? existingIdentity.company,
ssn: this.initialValues.ssn ?? existingIdentity.ssn,
passportNumber: this.initialValues.passportNumber ?? existingIdentity.passportNumber,
licenseNumber: this.initialValues.licenseNumber ?? existingIdentity.licenseNumber,
email: this.initialValues.email ?? existingIdentity.email,
phone: this.initialValues.phone ?? existingIdentity.phone,
address1: this.initialValues.address1 ?? existingIdentity.address1,
address2: this.initialValues.address2 ?? existingIdentity.address2,
address3: this.initialValues.address3 ?? existingIdentity.address3,
city: this.initialValues.city ?? existingIdentity.city,
state: this.initialValues.state ?? existingIdentity.state,
postalCode: this.initialValues.postalCode ?? existingIdentity.postalCode,
country: this.initialValues.country ?? existingIdentity.country,
firstName: this.initialValues?.firstName ?? existingIdentity.firstName,
middleName: this.initialValues?.middleName ?? existingIdentity.middleName,
lastName: this.initialValues?.lastName ?? existingIdentity.lastName,
company: this.initialValues?.company ?? existingIdentity.company,
ssn: this.initialValues?.ssn ?? existingIdentity.ssn,
passportNumber: this.initialValues?.passportNumber ?? existingIdentity.passportNumber,
licenseNumber: this.initialValues?.licenseNumber ?? existingIdentity.licenseNumber,
email: this.initialValues?.email ?? existingIdentity.email,
phone: this.initialValues?.phone ?? existingIdentity.phone,
address1: this.initialValues?.address1 ?? existingIdentity.address1,
address2: this.initialValues?.address2 ?? existingIdentity.address2,
address3: this.initialValues?.address3 ?? existingIdentity.address3,
city: this.initialValues?.city ?? existingIdentity.city,
state: this.initialValues?.state ?? existingIdentity.state,
postalCode: this.initialValues?.postalCode ?? existingIdentity.postalCode,
country: this.initialValues?.country ?? existingIdentity.country,
});
}