Skip to content

Commit 289e982

Browse files
committed
renamed captcha payload variable name
1 parent e3ff39c commit 289e982

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

layouts/hub-billing/single.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ <h3 class="font-headline text-xl md:text-2xl leading-relaxed mb-4">
3939
<i :class="{'fa-paper-plane': !subscriptionData.inProgress, 'fa-spinner fa-spin': subscriptionData.inProgress}" class="fas fa-fw" aria-hidden="true"></i>
4040
{{ i18n "hub_billing_createsession_submit" . }}
4141
</button>
42-
{{ partial "captcha.html" (dict "alpineVariable" "subscriptionData.captcha" "captchaState" "captchaState") }}
42+
{{ partial "captcha.html" (dict "captchaPayload" "subscriptionData.captcha" "captchaState" "captchaState") }}
4343
<p :class="{'hidden': !subscriptionData.errorMessage}" class="text-sm text-red-600 mt-2" x-text="subscriptionData.errorMessage"></p>
4444
</div>
4545
</template>

layouts/hub-demo/single.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ <h3 class="font-h3">
6161
<button x-show="submitData.captcha" :disabled="feedbackData.inProgress || captchaState == 'verifying'" type="submit" class="btn btn-primary w-full md:w-64" x-cloak>
6262
<i :class="{'fa-paper-plane': !feedbackData.inProgress, 'fa-spinner fa-spin': feedbackData.inProgress}" class="fas fa-fw" aria-hidden="true"></i> {{ i18n "hub_demo_submit" }}
6363
</button>
64-
{{ partial "captcha.html" (dict "alpineVariable" "submitData.captcha" "captchaState" "captchaState") }}
64+
{{ partial "captcha.html" (dict "captchaPayload" "submitData.captcha" "captchaState" "captchaState") }}
6565
<p :class="{'hidden': !feedbackData.errorMessage}" class="text-sm text-red-600 mt-2" x-text="feedbackData.errorMessage"></p>
6666
</div>
6767
</form>

layouts/hub-managed/single.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ <h2 class="font-h2 mb-6">
193193
<i :class="{'fa-paper-plane': !feedbackData.inProgress, 'fa-spinner fa-spin': feedbackData.inProgress}" class="fas fa-fw" aria-hidden="true"></i>
194194
{{ i18n "hub_managed_step_4_submit" }}
195195
</button>
196-
{{ partial "captcha.html" (dict "alpineVariable" "submitData.captcha" "captchaState" "captchaState") }}
196+
{{ partial "captcha.html" (dict "captchaPayload" "submitData.captcha" "captchaState" "captchaState") }}
197197
</div>
198198
</div>
199199
</div>

layouts/partials/captcha.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
hidelogo
44
hidefooter
55
floating="auto"
6-
@statechange="{{ .captchaState }} = $event.detail.state; if ($event.detail.state === 'verified') { {{ .alpineVariable }} = $event.detail.payload }"
6+
@statechange="{{ .captchaState }} = $event.detail.state; if ($event.detail.state === 'verified') { {{ .captchaPayload }} = $event.detail.payload }"
77
:strings="JSON.stringify({
88
label: '{{ i18n "altcha_label" }}',
99
error: '{{ i18n "altcha_error" }}',

layouts/partials/donate-creditcard.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
<i class="fas fa-spinner fa-spin" x-show="oneTimePaymentStatus.inProgress" aria-hidden="true"></i>
4949
</button>
5050

51-
{{ partial "captcha.html" (dict "alpineVariable" "oneTimePaymentStatus.captcha" "captchaState" "captchaState") }}
51+
{{ partial "captcha.html" (dict "captchaPayload" "oneTimePaymentStatus.captcha" "captchaState" "captchaState") }}
5252

5353
<p class="text-sm text-red-600 mt-2" x-text="oneTimePaymentStatus.errorMessage"></p>
5454
</div>

layouts/partials/supporter-cert-contributor.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<button :disabled="feedbackData.inProgress || !acceptTerms || captchaState == 'verifying'" type="submit" class="btn btn-primary w-full md:w-64 plausible-event-name=supporter-cert-contributor-form" data-umami-event="supporter-cert-contributor-form" x-cloak>
1919
<i :class="{'fa-paper-plane': !feedbackData.inProgress, 'fa-spinner fa-spin': feedbackData.inProgress}" class="fas fa-fw" aria-hidden="true"></i> {{ i18n "supporter_cert_common_submit" }}
2020
</button>
21-
{{ partial "captcha.html" (dict "alpineVariable" "submitData.captcha" "captchaState" "captchaState") }}
21+
{{ partial "captcha.html" (dict "captchaPayload" "submitData.captcha" "captchaState" "captchaState") }}
2222
<p :class="{'hidden': !feedbackData.errorMessage}" class="text-sm text-red-600 mt-2" x-text="feedbackData.errorMessage"></p>
2323
</div>
2424
</form>

layouts/partials/supporter-cert-influencer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<button :disabled="feedbackData.inProgress || !acceptTerms || captchaState == 'verifying'" type="submit" class="btn btn-primary w-full md:w-64 plausible-event-name=supporter-cert-influencer-form" data-umami-event="supporter-cert-influencer-form" x-cloak>
1515
<i :class="{'fa-paper-plane': !feedbackData.inProgress, 'fa-spinner fa-spin': feedbackData.inProgress}" class="fas fa-fw" aria-hidden="true"></i> {{ i18n "supporter_cert_common_submit" }}
1616
</button>
17-
{{ partial "captcha.html" (dict "alpineVariable" "submitData.captcha" "captchaState" "captchaState") }}
17+
{{ partial "captcha.html" (dict "captchaPayload" "submitData.captcha" "captchaState" "captchaState") }}
1818
<p :class="{'hidden': !feedbackData.errorMessage}" class="text-sm text-red-600 mt-2" x-text="feedbackData.errorMessage"></p>
1919
</div>
2020
</form>

layouts/partials/supporter-cert-other.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<button :disabled="feedbackData.inProgress || !acceptTerms || captchaState == 'verifying'" type="submit" class="btn btn-primary w-full md:w-64 plausible-event-name=supporter-cert-other-form" data-umami-event="supporter-cert-other-form" x-cloak>
1515
<i :class="{'fa-paper-plane': !feedbackData.inProgress, 'fa-spinner fa-spin': feedbackData.inProgress}" class="fas fa-fw" aria-hidden="true"></i> {{ i18n "supporter_cert_common_submit" }}
1616
</button>
17-
{{ partial "captcha.html" (dict "alpineVariable" "submitData.captcha" "captchaState" "captchaState") }}
17+
{{ partial "captcha.html" (dict "captchaPayload" "submitData.captcha" "captchaState" "captchaState") }}
1818
<p :class="{'hidden': !feedbackData.errorMessage}" class="text-sm text-red-600 mt-2" x-text="feedbackData.errorMessage"></p>
1919
</div>
2020
</form>

0 commit comments

Comments
 (0)