File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
src/routes/chat/[agentId]/[conversationId] Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 106106 let notificationText = ' ' ;
107107 let successText = " Done" ;
108108 let errorText = " Error" ;
109- let note = ' ' ;
110109
111110 /** @type {number} */
112111 let messageInputTimeout;
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 || '';
11891188 }).catch(() => {
11901189 elem.textContent = 'Error!';
11911190 }).finally(() => {
1192- clickCopy = false;
1191+ copyClicked = false;
11931192 setTimeout(() => {
11941193 elem.classList.add('hide');
11951194 }, 800);
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" />
You can’t perform that action at this time.
0 commit comments