Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor change #267

Merged
merged 1 commit into from
Nov 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions src/routes/chat/[agentId]/[conversationId]/chat-box.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@
let notificationText = '';
let successText = "Done";
let errorText = "Error";
let note = '';

/** @type {number} */
let messageInputTimeout;
Expand Down Expand Up @@ -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 || '';
Expand Down Expand Up @@ -1189,7 +1188,7 @@
}).catch(() => {
elem.textContent = 'Error!';
}).finally(() => {
clickCopy = false;
copyClicked = false;
setTimeout(() => {
elem.classList.add('hide');
}, 800);
Expand Down Expand Up @@ -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}
<i class="bx bxs-copy text-primary" />
{:else}
<i class="bx bx-copy text-primary" />
Expand Down
Loading