From 83dbab2ca3d3b1fb0cf56234b880ff90d9931630 Mon Sep 17 00:00:00 2001 From: Alireza Heidari Date: Mon, 18 Nov 2024 14:46:22 +0100 Subject: [PATCH] Adds hidePanel prop to ActivityBar and integrates MarkdownToolBox in MarkdownEditor Introduces hidePanel prop to conditionally hide the side panel in ActivityBar. Integrates MarkdownToolBox into MarkdownEditor temporary to have MarkdownToolBox in the page editor too. --- client/src/components/ActivityBar/ActivityBar.vue | 4 +++- client/src/components/Markdown/MarkdownEditor.vue | 7 +++++++ client/src/components/Workflow/Editor/Index.vue | 5 ++--- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/client/src/components/ActivityBar/ActivityBar.vue b/client/src/components/ActivityBar/ActivityBar.vue index 7e9cbad7190e..5371d14f84fe 100644 --- a/client/src/components/ActivityBar/ActivityBar.vue +++ b/client/src/components/ActivityBar/ActivityBar.vue @@ -38,6 +38,7 @@ const props = withDefaults( optionsIcon?: IconDefinition; optionsSearchPlaceholder?: string; initialActivity?: string; + hidePanel?: boolean; }>(), { defaultActivities: undefined, @@ -50,6 +51,7 @@ const props = withDefaults( optionsSearchPlaceholder: "Search Activities", optionsTooltip: "View additional activities", initialActivity: undefined, + hidePanel: false, } ); @@ -314,7 +316,7 @@ defineExpose({ - + diff --git a/client/src/components/Markdown/MarkdownEditor.vue b/client/src/components/Markdown/MarkdownEditor.vue index 69a2bec4f265..0ace2e5a3b6d 100644 --- a/client/src/components/Markdown/MarkdownEditor.vue +++ b/client/src/components/Markdown/MarkdownEditor.vue @@ -1,5 +1,8 @@