From 5dba8b4f3aeb94a04c164adc37caba7c652727df Mon Sep 17 00:00:00 2001 From: Josh Worden Date: Wed, 26 Oct 2022 10:51:58 -0500 Subject: [PATCH] Pass default field labels through to components --- packages/marko-web-identity-x/browser/authenticate.vue | 5 +++++ packages/marko-web-identity-x/browser/profile.vue | 2 +- .../marko-web-identity-x/components/form-authenticate.marko | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/marko-web-identity-x/browser/authenticate.vue b/packages/marko-web-identity-x/browser/authenticate.vue index 9beabbe3c..431f9e28b 100644 --- a/packages/marko-web-identity-x/browser/authenticate.vue +++ b/packages/marko-web-identity-x/browser/authenticate.vue @@ -20,6 +20,7 @@ :regional-consent-policies="regionalConsentPolicies" :button-label="buttonLabel" :call-to-action="callToAction" + :default-field-labels="defaultFieldLabels" @profile-updated="redirect" /> @@ -109,6 +110,10 @@ export default { type: String, default: null, }, + defaultFieldLabels: { + type: Object, + default: () => ({}), + }, booleanQuestionsLabel: { type: String, default: null, diff --git a/packages/marko-web-identity-x/browser/profile.vue b/packages/marko-web-identity-x/browser/profile.vue index c7a7d84f7..7c78b59e3 100644 --- a/packages/marko-web-identity-x/browser/profile.vue +++ b/packages/marko-web-identity-x/browser/profile.vue @@ -85,7 +85,7 @@ :city="citySettings" :region-code="regionCodeSettings" :postal-code="postalCodeSettings" - :field-labels="defaultFieldLabels" + :default-field-labels="defaultFieldLabels" />
diff --git a/packages/marko-web-identity-x/components/form-authenticate.marko b/packages/marko-web-identity-x/components/form-authenticate.marko index b319716bd..7bf0d4d27 100644 --- a/packages/marko-web-identity-x/components/form-authenticate.marko +++ b/packages/marko-web-identity-x/components/form-authenticate.marko @@ -15,6 +15,7 @@ $ const additionalEventData = defaultValue(input.additionalEventData, {}); requiredServerFields: identityX.config.getRequiredServerFields(), requiredClientFields: identityX.config.getRequiredClientFields(), defaultCountryCode: identityX.config.get('defaultCountryCode'), + defaultFieldLabels: identityX.config.get("defaultFieldLabels"), booleanQuestionsLabel: identityX.config.get('booleanQuestionsLabel'), hiddenFields: identityX.config.getHiddenFields(), endpoints: identityX.config.getEndpoints(),