Skip to content

Commit af2ae91

Browse files
authored
Merge pull request #267 from iceljc/features/refine-chat-window
minor change
2 parents aeb6b02 + 3c78b70 commit af2ae91

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/routes/chat/[agentId]/[conversationId]/chat-box.svelte

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@
106106
let notificationText = '';
107107
let successText = "Done";
108108
let errorText = "Error";
109-
let note = '';
110109
111110
/** @type {number} */
112111
let messageInputTimeout;
@@ -194,7 +193,7 @@
194193
let isDisplayNotification = false;
195194
let isComplete = false;
196195
let isError = false;
197-
let clickCopy = false;
196+
let copyClicked = false;
198197
199198
$: {
200199
// const editor = lastBotMsg?.rich_content?.editor || '';
@@ -1189,7 +1188,7 @@
11891188
}).catch(() => {
11901189
elem.textContent = 'Error!';
11911190
}).finally(() => {
1192-
clickCopy = false;
1191+
copyClicked = false;
11931192
setTimeout(() => {
11941193
elem.classList.add('hide');
11951194
}, 800);
@@ -1712,9 +1711,9 @@
17121711
data-bs-placement="top"
17131712
title="Copy"
17141713
on:mouseup={e => copyMessage(e, message)}
1715-
on:mousedown={() => clickCopy = true}
1714+
on:mousedown={() => copyClicked = true}
17161715
>
1717-
{#if clickCopy}
1716+
{#if copyClicked}
17181717
<i class="bx bxs-copy text-primary" />
17191718
{:else}
17201719
<i class="bx bx-copy text-primary" />

0 commit comments

Comments
 (0)