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; });