Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
Merge pull request #462 from solocommand/idx-field-labels
Browse files Browse the repository at this point in the history
Pass default field labels through to components
  • Loading branch information
solocommand authored Oct 26, 2022
2 parents 726fa05 + 5dba8b4 commit 48ae81b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions packages/marko-web-identity-x/browser/authenticate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
:regional-consent-policies="regionalConsentPolicies"
:button-label="buttonLabel"
:call-to-action="callToAction"
:default-field-labels="defaultFieldLabels"
@profile-updated="redirect"
/>
</div>
Expand Down Expand Up @@ -109,6 +110,10 @@ export default {
type: String,
default: null,
},
defaultFieldLabels: {
type: Object,
default: () => ({}),
},
booleanQuestionsLabel: {
type: String,
default: null,
Expand Down
2 changes: 1 addition & 1 deletion packages/marko-web-identity-x/browser/profile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
:city="citySettings"
:region-code="regionCodeSettings"
:postal-code="postalCodeSettings"
:field-labels="defaultFieldLabels"
:default-field-labels="defaultFieldLabels"
/>

<div v-if="customSelectFieldAnswers.length" class="row">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 48ae81b

Please sign in to comment.