[refactor] fixed wrong title on edit post page

This commit is contained in:
Markus 2023-07-20 10:15:39 +02:00
parent a8f32cad75
commit 18f932f1b6
2 changed files with 11 additions and 9 deletions

View File

@ -1,13 +1,5 @@
<template>
<div>
<div>
<h1 v-if="!createEvent" class="title">
{{ $t('post.createNewPost.title') }}
</h1>
<h1 v-else class="title">
{{ $t('post.createNewEvent.title') }}
</h1>
</div>
<ds-form
class="contribution-form"
ref="contributionForm"

View File

@ -16,7 +16,17 @@
</ds-flex-item>
<ds-flex-item :width="{ base: '100%', md: 1 }">
<transition name="slide-up" appear>
<contribution-form :group="group" :createEvent="createEvent" />
<div>
<div>
<h1 v-if="!createEvent" class="title">
{{ $t('post.createNewPost.title') }}
</h1>
<h1 v-else class="title">
{{ $t('post.createNewEvent.title') }}
</h1>
</div>
<contribution-form :group="group" :createEvent="createEvent" />
</div>
</transition>
</ds-flex-item>
</ds-flex>