From 93b5d88cb85f6ec9dc8bc9b683c2218853f64e25 Mon Sep 17 00:00:00 2001 From: John Chilton Date: Fri, 22 Dec 2023 14:30:57 -0500 Subject: [PATCH] Refactor modal logic out of core MarkdownHelp component. --- .../components/Markdown/MarkdownEditor.vue | 6 +- .../src/components/Markdown/MarkdownHelp.vue | 228 ++++++++---------- .../components/Markdown/MarkdownHelpModal.vue | 37 +++ 3 files changed, 144 insertions(+), 127 deletions(-) create mode 100644 client/src/components/Markdown/MarkdownHelpModal.vue diff --git a/client/src/components/Markdown/MarkdownEditor.vue b/client/src/components/Markdown/MarkdownEditor.vue index d31f9e15820d..7ffa96365c61 100644 --- a/client/src/components/Markdown/MarkdownEditor.vue +++ b/client/src/components/Markdown/MarkdownEditor.vue @@ -33,7 +33,7 @@ - + @@ -46,7 +46,7 @@ import FlexPanel from "components/Panels/FlexPanel"; import _ from "underscore"; import Vue from "vue"; -import MarkdownHelp from "./MarkdownHelp"; +import MarkdownHelpModal from "./MarkdownHelpModal"; import MarkdownToolBox from "./MarkdownToolBox"; Vue.use(BootstrapVue); @@ -60,7 +60,7 @@ export default { MarkdownToolBox, FlexPanel, FontAwesomeIcon, - MarkdownHelp, + MarkdownHelpModal, }, props: { markdownText: { diff --git a/client/src/components/Markdown/MarkdownHelp.vue b/client/src/components/Markdown/MarkdownHelp.vue index c6f56a52a865..a74edd971892 100644 --- a/client/src/components/Markdown/MarkdownHelp.vue +++ b/client/src/components/Markdown/MarkdownHelp.vue @@ -1,5 +1,5 @@ diff --git a/client/src/components/Markdown/MarkdownHelpModal.vue b/client/src/components/Markdown/MarkdownHelpModal.vue new file mode 100644 index 000000000000..b4e605262c2a --- /dev/null +++ b/client/src/components/Markdown/MarkdownHelpModal.vue @@ -0,0 +1,37 @@ + + +