Skip to content

Commit d84993c

Browse files
authored
Merge pull request #252 from iceljc/features/refine-chat-window
add flag
2 parents 09a2335 + e6e0800 commit d84993c

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

.env

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
PUBLIC_SERVICE_URL=https://botsharp.azurewebsites.net
33
PUBLIC_LIVECHAT_HOST=https://victorious-moss-007e11310.4.azurestaticapps.net/
44
PUBLIC_LIVECHAT_ENTRY_ICON=images/users/bot.png
5+
PUBLIC_DEBUG_MODE=false
56
PUBLIC_LIVECHAT_VOICE_ENABLED=false
7+
PUBLIC_LIVECHAT_SPEAKER_ENABLED=false
68
PUBLIC_LIVECHAT_FILES_ENABLED=false
79
PUBLIC_LIVECHAT_ENABLE_TRAINING=false
810
PUBLIC_HOME_IMAGE=images/megamenu-img.png
@@ -18,5 +20,4 @@ PUBLIC_COMPANY_WEBSITE=https://scisharp.github.io/SciSharp/
1820
PUBLIC_PLUGIN_DEFAULT_ICON=https://avatars.githubusercontent.com/u/44989469?s=200&v=4
1921
PUBLIC_ALLOW_SIGNUP=true
2022
PUBLIC_AUTH_ENABLE_SSO=true
21-
PUBLIC_AUTH_ENABLE_FIND_PWD=true
22-
PUBLIC_DEBUG_MODE=false
23+
PUBLIC_AUTH_ENABLE_FIND_PWD=true

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
import {
3939
PUBLIC_LIVECHAT_ENTRY_ICON,
4040
PUBLIC_LIVECHAT_VOICE_ENABLED,
41+
PUBLIC_LIVECHAT_SPEAKER_ENABLED,
4142
PUBLIC_LIVECHAT_FILES_ENABLED,
4243
PUBLIC_LIVECHAT_ENABLE_TRAINING,
4344
PUBLIC_DEBUG_MODE
@@ -1629,10 +1630,12 @@
16291630
<RcMessage message={message} />
16301631
{#if message?.message_id === lastBotMsg?.message_id && message?.uuid === lastBotMsg?.uuid}
16311632
<div style="display: flex; gap: 10px;">
1632-
<AudioSpeaker
1633-
id={message?.message_id}
1634-
text={message?.rich_content?.message?.text || message?.text}
1635-
/>
1633+
{#if PUBLIC_LIVECHAT_SPEAKER_ENABLED === 'true'}
1634+
<AudioSpeaker
1635+
id={message?.message_id}
1636+
text={message?.rich_content?.message?.text || message?.text}
1637+
/>
1638+
{/if}
16361639
{#if PUBLIC_LIVECHAT_ENABLE_TRAINING === 'true'}
16371640
{#if message?.function}
16381641
<div class="line-align-center" style="font-size: 17px;">
@@ -1655,6 +1658,7 @@
16551658
<!-- svelte-ignore a11y-no-static-element-interactions -->
16561659
<div
16571660
class="clickable"
1661+
style="height: 80%;"
16581662
data-bs-toggle="tooltip"
16591663
data-bs-placement="top"
16601664
title="Edit"

0 commit comments

Comments
 (0)