Move company fieldnames to Identity constants
This commit is contained in:
parent
0a1b0f5eb9
commit
8f889310c2
|
@ -667,7 +667,7 @@ export default class AutofillService implements AutofillServiceInterface {
|
|||
fillFields.username = f;
|
||||
break;
|
||||
} else if (!fillFields.company && this.isFieldMatch(f[attr],
|
||||
['company', 'company-name', 'organization', 'organization-name'])) {
|
||||
IdentityAutoFillConstants.CompanyFieldNames)) {
|
||||
fillFields.company = f;
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -299,6 +299,13 @@ export class IdentityAutoFillConstants {
|
|||
|
||||
static readonly UserNameFieldNames: string[] = ["user-name", "user-id", "screen-name"];
|
||||
|
||||
static readonly CompanyFieldNames: string[] = [
|
||||
"company",
|
||||
"company-name",
|
||||
"organization",
|
||||
"organization-name",
|
||||
];
|
||||
|
||||
static readonly IsoCountries: { [id: string]: string } = {
|
||||
afghanistan: "AF",
|
||||
"aland islands": "AX",
|
||||
|
|
Loading…
Reference in New Issue