From ba3e647ebe3b74911df1f3de8563ba11704e05aa Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Mon, 15 Dec 2025 20:08:04 +0530 Subject: [PATCH] feat: disable improve --- .../widgets/WootWriter/CopilotMenuBar.vue | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/app/javascript/dashboard/components/widgets/WootWriter/CopilotMenuBar.vue b/app/javascript/dashboard/components/widgets/WootWriter/CopilotMenuBar.vue index 2e2d3910d..85ebb20ae 100644 --- a/app/javascript/dashboard/components/widgets/WootWriter/CopilotMenuBar.vue +++ b/app/javascript/dashboard/components/widgets/WootWriter/CopilotMenuBar.vue @@ -10,7 +10,7 @@ import DropdownBody from 'next/dropdown-menu/base/DropdownBody.vue'; import Icon from 'next/icon/Icon.vue'; -const props = defineProps({ +defineProps({ hasSelection: { type: Boolean, default: false, @@ -28,24 +28,24 @@ const replyMode = useMapGetter('draftMessages/getReplyEditorMode'); // Selection-based menu items (when text is selected) const menuItems = computed(() => { const items = []; - if (props.hasSelection) { - items.push({ - label: t( - 'INTEGRATION_SETTINGS.OPEN_AI.REPLY_OPTIONS.IMPROVE_REPLY_SELECTION' - ), - key: 'rephrase_selection', - icon: 'i-fluent-pen-sparkle-24-regular', - }); - } else if ( - replyMode.value === REPLY_EDITOR_MODES.REPLY && - draftMessage.value - ) { - items.push({ - label: t('INTEGRATION_SETTINGS.OPEN_AI.REPLY_OPTIONS.IMPROVE_REPLY'), - key: 'rephrase', - icon: 'i-fluent-pen-sparkle-24-regular', - }); - } + // if (props.hasSelection) { + // items.push({ + // label: t( + // 'INTEGRATION_SETTINGS.OPEN_AI.REPLY_OPTIONS.IMPROVE_REPLY_SELECTION' + // ), + // key: 'rephrase_selection', + // icon: 'i-fluent-pen-sparkle-24-regular', + // }); + // } else if ( + // replyMode.value === REPLY_EDITOR_MODES.REPLY && + // draftMessage.value + // ) { + // items.push({ + // label: t('INTEGRATION_SETTINGS.OPEN_AI.REPLY_OPTIONS.IMPROVE_REPLY'), + // key: 'rephrase', + // icon: 'i-fluent-pen-sparkle-24-regular', + // }); + // } if (draftMessage.value) { items.push(