diff --git a/app/javascript/dashboard/components/widgets/WootWriter/CopilotReplyBottomPanel.vue b/app/javascript/dashboard/components/widgets/WootWriter/CopilotReplyBottomPanel.vue index e23cdbf7e..2da99f41a 100644 --- a/app/javascript/dashboard/components/widgets/WootWriter/CopilotReplyBottomPanel.vue +++ b/app/javascript/dashboard/components/widgets/WootWriter/CopilotReplyBottomPanel.vue @@ -1,8 +1,14 @@ diff --git a/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue b/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue index 7467c2fa8..21b6062e2 100644 --- a/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue +++ b/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue @@ -1121,6 +1121,12 @@ export default { onSubmitCopilotReply() { this.message = this.copilot.accept(); }, + onAcceptAndSendCopilotReply() { + this.message = this.copilot.accept(); + this.$nextTick(() => { + this.onSendReply(); + }); + }, }, }; @@ -1271,6 +1277,7 @@ export default { key="copilot-bottom-panel" :is-generating-content="copilot.isButtonDisabled.value" @submit="onSubmitCopilotReply" + @accept-and-send="onAcceptAndSendCopilotReply" @cancel="copilot.toggleEditor" />