Skip to content

Commit

Permalink
Merge pull request #49 from beabee-communityrm/chore/privacy-link-cal…
Browse files Browse the repository at this point in the history
…louts

chore: add privacy links
  • Loading branch information
wpf500 authored Aug 29, 2024
2 parents 848e393 + 549e360 commit e112919
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,23 @@
@submitted="handleSubmitted"
/>
</template>
<ul class="mt-8 w-full border-t border-primary-40 pt-4 text-sm">
<li>
<a :href="generalContent.privacyLink" class="text-link">{{
t('footer.privacyPolicy')
}}</a>
</li>
<li v-if="generalContent.termsLink">
<a :href="generalContent.termsLink" class="text-link">{{
t('footer.terms')
}}</a>
</li>
<li v-if="generalContent.impressumLink">
<a :href="generalContent.impressumLink" class="text-link">{{
t('footer.impressum')
}}</a>
</li>
</ul>
</CalloutSidePanel>
</template>

Expand All @@ -24,15 +41,19 @@ import { useCallout } from './use-callout';
import { ref, toRef, watch } from 'vue';
import CalloutSidePanel from './CalloutSidePanel.vue';
import CalloutThanksBox from './CalloutThanksBox.vue';
import { generalContent } from '@store/generalContent';
import type { GetCalloutDataWith } from '@type';
import { useI18n } from 'vue-i18n';
defineEmits<(e: 'close') => void>();
const props = defineProps<{
callout: GetCalloutDataWith<'form' | 'variantNames'>;
answers?: CalloutResponseAnswers;
}>();
const { t } = useI18n();
const showOnlyThanks = ref(false);
const { showLoginPrompt, showMemberOnlyPrompt } = useCallout(
Expand Down
18 changes: 18 additions & 0 deletions apps/frontend/src/components/pages/callouts/CalloutIntroPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,23 @@
<AppButton variant="primary" class="px-6" @click="$emit('close')">
{{ t('actions.getStarted') }}
</AppButton>
<ul class="mt-8 w-full border-t border-primary-40 pt-4 text-sm">
<li>
<a :href="generalContent.privacyLink" class="text-link">{{
t('footer.privacyPolicy')
}}</a>
</li>
<li v-if="generalContent.termsLink">
<a :href="generalContent.termsLink" class="text-link">{{
t('footer.terms')
}}</a>
</li>
<li v-if="generalContent.impressumLink">
<a :href="generalContent.impressumLink" class="text-link">{{
t('footer.impressum')
}}</a>
</li>
</ul>
</div>
</CalloutSidePanel>
</template>
Expand All @@ -19,6 +36,7 @@ import { useI18n } from 'vue-i18n';
import CalloutSidePanel from './CalloutSidePanel.vue';
import AppTitle from '@components/AppTitle.vue';
import AppButton from '@components/button/AppButton.vue';
import { generalContent } from '@store/generalContent';
import type { GetCalloutDataWith } from '@type';
Expand Down

0 comments on commit e112919

Please sign in to comment.