From 394419ce95cfb769261b2d97e8d88ee2899c9d71 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Wed, 4 Jun 2025 16:09:42 +0530 Subject: [PATCH] feat: allow new confg --- .../dashboard/components/widgets/WootWriter/Editor.vue | 10 +++++++++- app/javascript/ui/MessageList.vue | 2 +- public/test-components.html | 4 +++- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/app/javascript/dashboard/components/widgets/WootWriter/Editor.vue b/app/javascript/dashboard/components/widgets/WootWriter/Editor.vue index c8b49f612..c0f56d6f8 100644 --- a/app/javascript/dashboard/components/widgets/WootWriter/Editor.vue +++ b/app/javascript/dashboard/components/widgets/WootWriter/Editor.vue @@ -170,6 +170,10 @@ const shouldShowCannedResponses = computed(() => { }); const editorMenuOptions = computed(() => { + // eslint-disable-next-line no-underscore-dangle + if (window.__WOOT_ISOLATED_SHELL__) { + return []; + } return props.enabledMenuOptions.length ? props.enabledMenuOptions : MESSAGE_EDITOR_MENU_OPTIONS; @@ -657,7 +661,7 @@ watch(sendWithSignature, newValue => { } }); -onMounted(() => { +onMounted(async () => { // [VITE] state assignment was done in created before state = createState( props.modelValue, @@ -738,6 +742,10 @@ useEmitter(BUS_EVENTS.INSERT_INTO_RICH_EDITOR, insertContentIntoEditor); .ProseMirror-menubar-wrapper { @apply flex flex-col; + .ProseMirror-menubar:empty { + display: none; + } + .ProseMirror-menubar { min-height: var(--space-two) !important; @apply -ml-2.5 pb-0 bg-transparent text-n-slate-11; diff --git a/app/javascript/ui/MessageList.vue b/app/javascript/ui/MessageList.vue index d12f25398..061cc13dd 100644 --- a/app/javascript/ui/MessageList.vue +++ b/app/javascript/ui/MessageList.vue @@ -99,7 +99,7 @@ useInfiniteScroll(messageListRef, useThrottleFn(fetchMore, 1000), {