feat(ux): accept and send action

This commit is contained in:
Shivam Mishra
2026-01-22 18:00:19 +05:30
parent 9e97cc0cdd
commit 0eaab0a9ae
4 changed files with 105 additions and 13 deletions
@@ -1121,6 +1121,12 @@ export default {
onSubmitCopilotReply() {
this.message = this.copilot.accept();
},
onAcceptAndSendCopilotReply() {
this.message = this.copilot.accept();
this.$nextTick(() => {
this.onSendReply();
});
},
},
};
</script>
@@ -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"
/>
<ReplyBottomPanel