1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-29 17:38:04 +01:00

[PM-10416] Address field is used to populate state field when adding identity cipher from inline menu (#10348)

This commit is contained in:
Cesar Gonzalez 2024-08-01 08:18:20 -05:00 committed by GitHub
parent afca4c760a
commit 77d6ac88e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 2 deletions

View File

@ -393,6 +393,7 @@ export class IdentityAutoFillConstants {
"address-line-2", "address-line-2",
"addr-2", "addr-2",
"street-2", "street-2",
"address-ext",
]; ];
static readonly Address3FieldNames: string[] = [ static readonly Address3FieldNames: string[] = [
@ -409,6 +410,7 @@ export class IdentityAutoFillConstants {
"zip-code", "zip-code",
"postal-code", "postal-code",
"post-code", "post-code",
"postcode",
"address-zip", "address-zip",
"address-postal", "address-postal",
"address-code", "address-code",

View File

@ -666,7 +666,14 @@ export class InlineMenuFieldQualificationService
return ( return (
!this.fieldContainsAutocompleteValues(field, this.autocompleteDisabledValues) && !this.fieldContainsAutocompleteValues(field, this.autocompleteDisabledValues) &&
this.keywordsFoundInFieldData(field, IdentityAutoFillConstants.Address1FieldNames, false) this.keywordsFoundInFieldData(
field,
[
...IdentityAutoFillConstants.AddressFieldNames,
...IdentityAutoFillConstants.Address1FieldNames,
],
false,
)
); );
}; };
@ -730,7 +737,7 @@ export class InlineMenuFieldQualificationService
return ( return (
!this.fieldContainsAutocompleteValues(field, this.autocompleteDisabledValues) && !this.fieldContainsAutocompleteValues(field, this.autocompleteDisabledValues) &&
this.keywordsFoundInFieldData(field, IdentityAutoFillConstants.AddressFieldNames, false) this.keywordsFoundInFieldData(field, IdentityAutoFillConstants.StateFieldNames, false)
); );
}; };