Skip to content

Commit

Permalink
feat(@dpc-sdp/ripple-tide-webform): add captcha support to rating for…
Browse files Browse the repository at this point in the history
…m via feature flags
  • Loading branch information
jeffdowdle committed Sep 18, 2024
1 parent a66b177 commit 5b0118b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/nuxt-ripple/components/TideContentRating.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script setup lang="ts">
import { onMounted, ref } from 'vue'
import type { IRplFeatureFlags } from '@dpc-sdp/ripple-tide-api/types'
interface Props {
siteSectionName: string
Expand All @@ -21,6 +22,10 @@ onMounted(() => {
isMounted.value = true
pageUrl.value = window.location.href
})
const featureFlags: IRplFeatureFlags = inject('featureFlags', {})
const captchaConfig = featureFlags.contentRatingCaptchaConfig
</script>

<template>
Expand All @@ -35,6 +40,7 @@ onMounted(() => {
title="Was this page helpful?"
successMessageHTML="Thank you! Your response has been submitted."
errorMessageHTML="We are experiencing a server error. Please try again, otherwise contact us."
:captcha-config="captchaConfig"
>
<template #default="{ value }">
<div class="tide-content-rating__rating">
Expand Down

0 comments on commit 5b0118b

Please sign in to comment.