From 1f1c700e1eeb23c77af3e2c5c0a009c592608743 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Mon, 15 Dec 2025 20:10:01 +0530 Subject: [PATCH] feat: show summarize only for private note --- .../widgets/WootWriter/CopilotMenuBar.vue | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/app/javascript/dashboard/components/widgets/WootWriter/CopilotMenuBar.vue b/app/javascript/dashboard/components/widgets/WootWriter/CopilotMenuBar.vue index 85ebb20ae..1b0fb0f33 100644 --- a/app/javascript/dashboard/components/widgets/WootWriter/CopilotMenuBar.vue +++ b/app/javascript/dashboard/components/widgets/WootWriter/CopilotMenuBar.vue @@ -108,18 +108,19 @@ const generalMenuItems = computed(() => { }); } - items.push( - { + if (replyMode.value === REPLY_EDITOR_MODES.NOTE) { + items.push({ label: t('INTEGRATION_SETTINGS.OPEN_AI.REPLY_OPTIONS.SUMMARIZE'), key: 'summarize', icon: 'i-fluent-text-bullet-list-square-sparkle-32-regular', - }, - { - label: t('INTEGRATION_SETTINGS.OPEN_AI.REPLY_OPTIONS.ASK_COPILOT'), - key: 'ask_copilot', - icon: 'i-fluent-circle-sparkle-24-regular', - } - ); + }); + } + + items.push({ + label: t('INTEGRATION_SETTINGS.OPEN_AI.REPLY_OPTIONS.ASK_COPILOT'), + key: 'ask_copilot', + icon: 'i-fluent-circle-sparkle-24-regular', + }); return items; });