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 #783 from brandonbk/render-html
Browse files Browse the repository at this point in the history
Render html for callToAction text
  • Loading branch information
brandonbk authored Sep 11, 2023
2 parents 739d7f8 + 97c1018 commit 26aa0f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions packages/marko-web-identity-x/browser/download.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
<h5 class="content-page-gate__title">
{{ title }}
</h5>
<p v-if="!didSubmit">
{{ callToAction }}
</p>
<p v-if="!didSubmit" v-html="callToAction" />
<form v-if="!didSubmit" @submit.prevent="handleSubmit">
<fieldset :disabled="isLoading">
<div v-for="(row, ridx) in fieldRows" :key="ridx" class="row">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ $ const { req: { identityX } } = out.global;
$ const { content, formId } = input;
$ const form = identityX.config.getAsObject(`forms.${formId}`);
$ const additionalEventData = defaultValue(input.additionalEventData, {});
$ const ctaPrefix = `To download "$!{content.name}"`;
$ const ctaPrefix = `To download "${content.name}"`;
$ const callToAction = defaultValue(input.callToAction, `${ctaPrefix}, please fill out the form below.`);
$ const callToActionLoggedOut = defaultValue(input.callToAction, `${ctaPrefix}, please enter your email address below. You will receive an email containing a verification link.`);
$ const buttonLabel = defaultValue(input.buttonLabel, "Submit & Download");
Expand Down

0 comments on commit 26aa0f8

Please sign in to comment.