From 3c78b701b6c09ca8b7a78ddfea6fbf33988acc47 Mon Sep 17 00:00:00 2001
From: Jicheng Lu <103353@smsassist.com>
Date: Wed, 6 Nov 2024 17:22:13 -0600
Subject: [PATCH] minor change
---
.../chat/[agentId]/[conversationId]/chat-box.svelte | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte b/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte
index 48a527d6..4c07cf80 100644
--- a/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte
+++ b/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte
@@ -106,7 +106,6 @@
let notificationText = '';
let successText = "Done";
let errorText = "Error";
- let note = '';
/** @type {number} */
let messageInputTimeout;
@@ -194,7 +193,7 @@
let isDisplayNotification = false;
let isComplete = false;
let isError = false;
- let clickCopy = false;
+ let copyClicked = false;
$: {
// const editor = lastBotMsg?.rich_content?.editor || '';
@@ -1189,7 +1188,7 @@
}).catch(() => {
elem.textContent = 'Error!';
}).finally(() => {
- clickCopy = false;
+ copyClicked = false;
setTimeout(() => {
elem.classList.add('hide');
}, 800);
@@ -1712,9 +1711,9 @@
data-bs-placement="top"
title="Copy"
on:mouseup={e => copyMessage(e, message)}
- on:mousedown={() => clickCopy = true}
+ on:mousedown={() => copyClicked = true}
>
- {#if clickCopy}
+ {#if copyClicked}
{:else}