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