feat: add enableCopilot prop to Editor and update ScheduledMessageModal to disable copilot

This commit is contained in:
gabrieljablonski 2026-02-18 10:47:25 -03:00
parent 85ec13a273
commit 360ad59732
2 changed files with 6 additions and 1 deletions

View File

@ -92,6 +92,7 @@ const props = defineProps({
medium: { type: String, default: '' },
showImageResizeToolbar: { type: Boolean, default: false }, // A kill switch to show or hide the image toolbar
focusOnMount: { type: Boolean, default: true },
enableCopilot: { type: Boolean, default: true },
});
const emit = defineEmits([
@ -110,7 +111,10 @@ const emit = defineEmits([
]);
const { t } = useI18n();
const { captainTasksEnabled } = useCaptain();
const { captainTasksEnabled: rawCaptainTasksEnabled } = useCaptain();
const captainTasksEnabled = computed(
() => props.enableCopilot && rawCaptainTasksEnabled.value
);
const TYPING_INDICATOR_IDLE_TIME = 4000;
const MAXIMUM_FILE_UPLOAD_SIZE = 4; // in MB

View File

@ -504,6 +504,7 @@ watch(
:channel-type="currentInbox?.channel_type"
:medium="currentInbox?.medium"
:disabled="hasTemplate"
:enable-copilot="false"
override-line-breaks
@update:model-value="
() => {