Skip to content

Commit cc55dfd

Browse files
committed
Add relevant titles for custom editor
1 parent 87a6031 commit cc55dfd

3 files changed

Lines changed: 14 additions & 5 deletions

File tree

src/components/EditorForForm.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<template>
22
<div>
3-
<!-- TODO Label not working -->
4-
<span class="text-subtitle-1">{{ node.layout.label }}</span>
3+
<span v-if="title" class="text-subtitle-1">{{ title }}</span>
54
<Editor
65
v-if="content !== null"
76
v-model="content"
@@ -14,6 +13,10 @@
1413
1514
export default {
1615
props: {
16+
title: {
17+
type: String,
18+
default: null,
19+
},
1720
node: {
1821
type: Object,
1922
required: true,

src/components/SettingComponents/PacketSettingsView.vue

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,10 @@
109109
@submit="addPacket"
110110
>
111111
<template #custom-editor="context">
112-
<EditorForForm v-bind="context" />
112+
<EditorForForm
113+
v-bind="context"
114+
:title="$t('description')"
115+
/>
113116
</template>
114117
<template #custom-image="context">
115118
<ImageUpload
@@ -127,7 +130,10 @@
127130
@submit="editPacket"
128131
>
129132
<template #custom-editor="context">
130-
<EditorForForm v-bind="context" />
133+
<EditorForForm
134+
v-bind="context"
135+
:title="$t('description')"
136+
/>
131137
</template>
132138
<template #custom-image="context">
133139
<ImageUpload

src/components/SettingComponents/ShopSettingsView.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
@submit="saveData"
2424
>
2525
<template #custom-editor="context">
26-
<EditorForForm v-bind="context" />
26+
<EditorForForm v-bind="context" :title="$t('news')" />
2727
</template>
2828
<template #custom-logo="context">
2929
<ImageUpload

0 commit comments

Comments
 (0)