Remove h2 title and replace the first slider title with its text

This commit is contained in:
Wolfgang Huß 2021-03-24 14:00:21 +01:00 committed by Ulf Gebhardt
parent 3398d3b373
commit d38cfd2d7d
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD
4 changed files with 19 additions and 13 deletions

View File

@ -5,11 +5,25 @@
<ds-heading <ds-heading
v-if=" v-if="
sliderData.sliders[sliderIndex].titleIdent && sliderData.sliders[sliderIndex].titleIdent &&
$t(sliderData.sliders[sliderIndex].titleIdent).length > 0 ((typeof sliderData.sliders[sliderIndex].titleIdent === 'string' &&
$t(sliderData.sliders[sliderIndex].titleIdent).length > 0) ||
(typeof sliderData.sliders[sliderIndex].titleIdent === 'object' &&
$t(
sliderData.sliders[sliderIndex].titleIdent.id,
sliderData.sliders[sliderIndex].titleIdent.data,
).length > 0))
" "
size="h3" size="h3"
> >
{{ $t(sliderData.sliders[sliderIndex].titleIdent) }} {{
(typeof sliderData.sliders[sliderIndex].titleIdent === 'string' &&
$t(sliderData.sliders[sliderIndex].titleIdent)) ||
(typeof sliderData.sliders[sliderIndex].titleIdent === 'object' &&
$t(
sliderData.sliders[sliderIndex].titleIdent.id,
sliderData.sliders[sliderIndex].titleIdent.data,
))
}}
</ds-heading> </ds-heading>
<slot :name="sliderData.sliders[sliderIndex].name" /> <slot :name="sliderData.sliders[sliderIndex].name" />

View File

@ -8,12 +8,6 @@
</template> </template>
<component-slider :sliderData="sliderData"> <component-slider :sliderData="sliderData">
<template #header>
<ds-heading size="h2">
{{ $t('components.registration.signup.title', metadata) }}
</ds-heading>
</template>
<template #no-public-registration> <template #no-public-registration>
<registration-slide-no-public :sliderData="sliderData" /> <registration-slide-no-public :sliderData="sliderData" />
</template> </template>
@ -90,7 +84,7 @@ export default {
}, },
enterInvite: { enterInvite: {
name: 'enter-invite', name: 'enter-invite',
titleIdent: 'components.registration.invite-code.title', titleIdent: { id: 'components.registration.signup.title', data: metadata },
validated: false, validated: false,
data: { request: null, response: { isValidInviteCode: false } }, data: { request: null, response: { isValidInviteCode: false } },
button: { button: {

View File

@ -185,8 +185,7 @@
"validations": { "validations": {
"length": "muss genau 6 Buchstaben lang sein" "length": "muss genau 6 Buchstaben lang sein"
} }
}, }
"title": "Einladung"
}, },
"no-public-registrstion": { "no-public-registrstion": {
"title": "Keine öffentliche Registrierung möglich" "title": "Keine öffentliche Registrierung möglich"

View File

@ -185,8 +185,7 @@
"validations": { "validations": {
"length": "must be 6 characters long" "length": "must be 6 characters long"
} }
}, }
"title": "Invitation"
}, },
"no-public-registrstion": { "no-public-registrstion": {
"title": "No Public Registration" "title": "No Public Registration"