From f3302b4014f642ff8ea4b21027246f58ddf5f2cb Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Sat, 11 Oct 2025 09:02:10 +0200 Subject: [PATCH] fixed start page and ingredient templater --- vue3/src/components/inputs/StepEditor.vue | 6 +++--- vue3/src/components/inputs/StepMarkdownEditor.vue | 8 ++++---- vue3/src/pages/StartPage.vue | 12 ++++++------ vue3/src/vuetify.ts | 6 +++++- 4 files changed, 18 insertions(+), 14 deletions(-) diff --git a/vue3/src/components/inputs/StepEditor.vue b/vue3/src/components/inputs/StepEditor.vue index 7fd62df30..555f71d04 100644 --- a/vue3/src/components/inputs/StepEditor.vue +++ b/vue3/src/components/inputs/StepEditor.vue @@ -67,13 +67,13 @@
- + - +
diff --git a/vue3/src/components/inputs/StepMarkdownEditor.vue b/vue3/src/components/inputs/StepMarkdownEditor.vue index f7fcd3f66..c0cf066e1 100644 --- a/vue3/src/components/inputs/StepMarkdownEditor.vue +++ b/vue3/src/components/inputs/StepMarkdownEditor.vue @@ -17,10 +17,10 @@ {{$t('Ingredients')}} - + @@ -65,7 +65,7 @@ const templates = computed(() => { function insertTextAtPosition(text: string){ let textarea = markdownEditor.value.getTextareaDom() let position = textarea.selectionStart - if (step.value.instruction){ + if (step.value.instruction != undefined){ step.value.instruction = step.value.instruction.slice(0, position) + text + step.value.instruction.slice(position) nextTick(() => { diff --git a/vue3/src/pages/StartPage.vue b/vue3/src/pages/StartPage.vue index 8935a5499..b06b7e99b 100644 --- a/vue3/src/pages/StartPage.vue +++ b/vue3/src/pages/StartPage.vue @@ -34,13 +34,13 @@