From e83a26d45545a403d6337092215d93fd6277d429 Mon Sep 17 00:00:00 2001 From: Lion Arar Date: Fri, 26 Sep 2025 13:48:14 -0400 Subject: [PATCH] feat: modified how the message is sent. Took out the handleEnter function since it wasnt needed. --- src/css/quasar.variables.scss | 1 + .../chatbot/components/conversation-box.vue | 24 +++++++++---------- .../chatbot/components/dialogue-phrase.vue | 7 ++++-- 3 files changed, 18 insertions(+), 14 deletions(-) diff --git a/src/css/quasar.variables.scss b/src/css/quasar.variables.scss index 4279286..20dd6e6 100644 --- a/src/css/quasar.variables.scss +++ b/src/css/quasar.variables.scss @@ -28,3 +28,4 @@ $negative: #e6364b; $info: #6bb9e7; $warning: #e4a944; $white: white; + diff --git a/src/modules/chatbot/components/conversation-box.vue b/src/modules/chatbot/components/conversation-box.vue index 4e45e65..927db86 100644 --- a/src/modules/chatbot/components/conversation-box.vue +++ b/src/modules/chatbot/components/conversation-box.vue @@ -27,14 +27,14 @@ const sendMessage = async () => { text.value = ''; } -const handleEnter = async (e: KeyboardEvent) => { - if (e.shiftKey) { - text.value += '\n'; - } else { - e.preventDefault(); - await sendMessage(); - } -}; +// const handleEnter = async (e: KeyboardEvent) => { +// if (e.shiftKey) { +// text.value += '\n'; +// } else { +// e.preventDefault(); +// await sendMessage(); +// } +// }; + + \ No newline at end of file