fix(front): Description in EditForm
This commit is contained in:
parent
40a8746c50
commit
d995b4441a
|
@ -278,11 +278,10 @@ const resetField = (fieldId: string) => {
|
|||
</select>
|
||||
</template>
|
||||
<template v-else-if="fieldConfig.type === 'content'">
|
||||
<Textarea
|
||||
<content-form
|
||||
v-model="values[fieldConfig.id].text"
|
||||
:label="fieldConfig.label"
|
||||
:field-id="fieldConfig.id"
|
||||
initial-lines="3"
|
||||
:rows="3"
|
||||
/>
|
||||
</template>
|
||||
<!-- TODO: Style Attachment Input -->
|
||||
|
@ -349,8 +348,6 @@ const resetField = (fieldId: string) => {
|
|||
{{ t('components.library.EditForm.button.cancel') }}
|
||||
</Link>
|
||||
</Textarea>
|
||||
<Layout flex>
|
||||
<Spacer grow />
|
||||
<Button
|
||||
:is-loading="isLoading"
|
||||
primary
|
||||
|
@ -363,15 +360,6 @@ const resetField = (fieldId: string) => {
|
|||
{{ t('components.library.EditForm.button.suggest') }}
|
||||
</span>
|
||||
</Button>
|
||||
<Link
|
||||
solid
|
||||
secondary
|
||||
raised
|
||||
:to="{ name: 'library.albums.detail', params: { id: object.id } }"
|
||||
>
|
||||
{{ t('components.library.EditForm.button.cancel') }}
|
||||
</Link>
|
||||
</Layout>
|
||||
</form>
|
||||
</Layout>
|
||||
</template>
|
||||
|
|
|
@ -6,7 +6,7 @@ import showdown from 'showdown'
|
|||
import SanitizedHtml from './SanitizedHtml.vue'
|
||||
|
||||
interface Props {
|
||||
md: string
|
||||
md: string | null
|
||||
}
|
||||
|
||||
const props = defineProps<Props>()
|
||||
|
|
Loading…
Reference in New Issue