From 813feaa31c0422edc55d38a7937dd0d5b708327c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=99=E2=97=A6=20The=20Tablet=20=E2=9D=80=20GamerGirla?= =?UTF-8?q?ndCo=20=E2=97=A6=E2=9D=A7?= Date: Thu, 28 Dec 2023 06:39:15 -0500 Subject: [PATCH] refactor(components): add custom submit text prop to story form --- components/story/create/storyform.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/story/create/storyform.vue b/components/story/create/storyform.vue index 8499496..364f6fe 100644 --- a/components/story/create/storyform.vue +++ b/components/story/create/storyform.vue @@ -27,6 +27,7 @@ canDraft?: boolean; endpoint: string; endpointMethod: "put" | "post"; + submitText?: string; }>(); let drag = false; let acData = ref(props.data); @@ -143,6 +144,7 @@ @click=" (e) => { if (!Array.isArray(values.chapters)) { + // noinspection TypeScriptValidateTypes setFieldValue('chapters', []); } const chaps = [...toRaw(values.chapters)]; @@ -171,7 +173,9 @@ - go. + {{ + submitText || "Post" + }}