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;
|
fillFields.username = f;
|
||||||
break;
|
break;
|
||||||
} else if (!fillFields.company && this.isFieldMatch(f[attr],
|
} else if (!fillFields.company && this.isFieldMatch(f[attr],
|
||||||
['company', 'company-name', 'organization', 'organization-name'])) {
|
IdentityAutoFillConstants.CompanyFieldNames)) {
|
||||||
fillFields.company = f;
|
fillFields.company = f;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -299,6 +299,13 @@ export class IdentityAutoFillConstants {
|
||||||
|
|
||||||
static readonly UserNameFieldNames: string[] = ["user-name", "user-id", "screen-name"];
|
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 } = {
|
static readonly IsoCountries: { [id: string]: string } = {
|
||||||
afghanistan: "AF",
|
afghanistan: "AF",
|
||||||
"aland islands": "AX",
|
"aland islands": "AX",
|
||||||
|
|
Loading…
Reference in New Issue