From e6e0800c060568ac7af77992fa5d9ee6d4700f44 Mon Sep 17 00:00:00 2001 From: Jicheng Lu <103353@smsassist.com> Date: Mon, 21 Oct 2024 16:11:20 -0500 Subject: [PATCH] add flag --- .env | 5 +++-- .../chat/[agentId]/[conversationId]/chat-box.svelte | 12 ++++++++---- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.env b/.env index 6dec0ce..45c0377 100644 --- a/.env +++ b/.env @@ -2,7 +2,9 @@ PUBLIC_SERVICE_URL=https://botsharp.azurewebsites.net PUBLIC_LIVECHAT_HOST=https://victorious-moss-007e11310.4.azurestaticapps.net/ PUBLIC_LIVECHAT_ENTRY_ICON=images/users/bot.png +PUBLIC_DEBUG_MODE=false PUBLIC_LIVECHAT_VOICE_ENABLED=false +PUBLIC_LIVECHAT_SPEAKER_ENABLED=false PUBLIC_LIVECHAT_FILES_ENABLED=false PUBLIC_LIVECHAT_ENABLE_TRAINING=false PUBLIC_HOME_IMAGE=images/megamenu-img.png @@ -18,5 +20,4 @@ PUBLIC_COMPANY_WEBSITE=https://scisharp.github.io/SciSharp/ PUBLIC_PLUGIN_DEFAULT_ICON=https://avatars.githubusercontent.com/u/44989469?s=200&v=4 PUBLIC_ALLOW_SIGNUP=true PUBLIC_AUTH_ENABLE_SSO=true -PUBLIC_AUTH_ENABLE_FIND_PWD=true -PUBLIC_DEBUG_MODE=false \ No newline at end of file +PUBLIC_AUTH_ENABLE_FIND_PWD=true \ No newline at end of file diff --git a/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte b/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte index 72a2915..8645918 100644 --- a/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte +++ b/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte @@ -38,6 +38,7 @@ import { PUBLIC_LIVECHAT_ENTRY_ICON, PUBLIC_LIVECHAT_VOICE_ENABLED, + PUBLIC_LIVECHAT_SPEAKER_ENABLED, PUBLIC_LIVECHAT_FILES_ENABLED, PUBLIC_LIVECHAT_ENABLE_TRAINING, PUBLIC_DEBUG_MODE @@ -1629,10 +1630,12 @@ {#if message?.message_id === lastBotMsg?.message_id && message?.uuid === lastBotMsg?.uuid}
- + {#if PUBLIC_LIVECHAT_SPEAKER_ENABLED === 'true'} + + {/if} {#if PUBLIC_LIVECHAT_ENABLE_TRAINING === 'true'} {#if message?.function}
@@ -1655,6 +1658,7 @@