mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Merge branch 'master' into fix-reports-seed
This commit is contained in:
commit
a498110ee4
@ -89,13 +89,13 @@
|
|||||||
<label for="checkbox0">
|
<label for="checkbox0">
|
||||||
{{ $t('components.registration.create-user-account.termsAndCondsEtcConfirmed') }}
|
{{ $t('components.registration.create-user-account.termsAndCondsEtcConfirmed') }}
|
||||||
<br />
|
<br />
|
||||||
<a :href="'/terms-and-conditions'" target="_blank">
|
<page-params-link :pageParams="links.TERMS_AND_CONDITIONS" forceTargetBlank>
|
||||||
{{ $t('site.termsAndConditions') }}
|
{{ $t('site.termsAndConditions') }}
|
||||||
</a>
|
</page-params-link>
|
||||||
<br />
|
<br />
|
||||||
<a :href="'/data-privacy'" target="_blank">
|
<page-params-link :pageParams="links.DATA_PRIVACY" forceTargetBlank>
|
||||||
{{ $t('site.data-privacy') }}
|
{{ $t('site.data-privacy') }}
|
||||||
</a>
|
</page-params-link>
|
||||||
</label>
|
</label>
|
||||||
</ds-text>
|
</ds-text>
|
||||||
<ds-text>
|
<ds-text>
|
||||||
@ -123,20 +123,22 @@
|
|||||||
import { VERSION } from '~/constants/terms-and-conditions-version.js'
|
import { VERSION } from '~/constants/terms-and-conditions-version.js'
|
||||||
import links from '~/constants/links'
|
import links from '~/constants/links'
|
||||||
import emails from '~/constants/emails'
|
import emails from '~/constants/emails'
|
||||||
|
import { SignupVerificationMutation } from '~/graphql/Registration.js'
|
||||||
|
import { SweetalertIcon } from 'vue-sweetalert-icons'
|
||||||
import PasswordStrength from '~/components/Password/Strength'
|
import PasswordStrength from '~/components/Password/Strength'
|
||||||
import EmailDisplayAndVerify from './EmailDisplayAndVerify'
|
import EmailDisplayAndVerify from './EmailDisplayAndVerify'
|
||||||
import { SweetalertIcon } from 'vue-sweetalert-icons'
|
import PageParamsLink from '~/components/_new/features/PageParamsLink/PageParamsLink'
|
||||||
import PasswordForm from '~/components/utils/PasswordFormHelper'
|
import PasswordForm from '~/components/utils/PasswordFormHelper'
|
||||||
import { SignupVerificationMutation } from '~/graphql/Registration.js'
|
|
||||||
import ShowPassword from '../ShowPassword/ShowPassword.vue'
|
import ShowPassword from '../ShowPassword/ShowPassword.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'RegistrationSlideCreate',
|
name: 'RegistrationSlideCreate',
|
||||||
components: {
|
components: {
|
||||||
PasswordStrength,
|
|
||||||
EmailDisplayAndVerify,
|
EmailDisplayAndVerify,
|
||||||
SweetalertIcon,
|
PageParamsLink,
|
||||||
|
PasswordStrength,
|
||||||
ShowPassword,
|
ShowPassword,
|
||||||
|
SweetalertIcon,
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
sliderData: { type: Object, required: true },
|
sliderData: { type: Object, required: true },
|
||||||
|
|||||||
@ -1,17 +1,12 @@
|
|||||||
<template>
|
<template>
|
||||||
<nuxt-link
|
<nuxt-link
|
||||||
v-if="pageParams.isInternalPage"
|
v-if="isInternalLink"
|
||||||
:to="pageParams.internalPage.pageRoute"
|
:to="pageParams.internalPage.pageRoute"
|
||||||
:data-test="pageParams.name + '-nuxt-link'"
|
:data-test="pageParams.name + '-nuxt-link'"
|
||||||
>
|
>
|
||||||
<slot />
|
<slot />
|
||||||
</nuxt-link>
|
</nuxt-link>
|
||||||
<a
|
<a v-else :href="href" :target="target" :data-test="pageParams.name + '-link'">
|
||||||
v-else
|
|
||||||
:href="pageParams.externalLink.url"
|
|
||||||
:target="pageParams.externalLink.target"
|
|
||||||
:data-test="pageParams.name + '-link'"
|
|
||||||
>
|
|
||||||
<slot />
|
<slot />
|
||||||
</a>
|
</a>
|
||||||
</template>
|
</template>
|
||||||
@ -21,6 +16,24 @@ export default {
|
|||||||
name: 'PageParamsLink',
|
name: 'PageParamsLink',
|
||||||
props: {
|
props: {
|
||||||
pageParams: { type: Object, required: true },
|
pageParams: { type: Object, required: true },
|
||||||
|
forceTargetBlank: { type: Boolean, default: false },
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
href() {
|
||||||
|
return this.pageParams.isInternalPage
|
||||||
|
? this.pageParams.internalPage.pageRoute
|
||||||
|
: this.pageParams.externalLink.url
|
||||||
|
},
|
||||||
|
target() {
|
||||||
|
return this.forceTargetBlank
|
||||||
|
? '_blank'
|
||||||
|
: !this.pageParams.isInternalPage
|
||||||
|
? this.pageParams.externalLink.target
|
||||||
|
: ''
|
||||||
|
},
|
||||||
|
isInternalLink() {
|
||||||
|
return !this.forceTargetBlank && this.pageParams.isInternalPage
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user