Skip to content

Commit 167f33a

Browse files
authored
Merge pull request #265 from iceljc/features/refine-chat-window
temp change
2 parents 75114ea + 16351fd commit 167f33a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@
201201
}
202202
203203
$: {
204-
disableAction = !ADMIN_ROLES.includes(currentUser?.role || '') && currentUser?.id !== conversationUser?.id || !agent?.chatable;
204+
disableAction = !ADMIN_ROLES.includes(currentUser?.role || '') && currentUser?.id !== conversationUser?.id;
205205
}
206206
207207
setContext('chat-window-context', {

src/routes/page/agent/[agentId]/agent-overview.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
height="50"
7676
class="mx-auto d-block"
7777
/>
78-
{#if !!agent.chatable}
78+
{#if 1}
7979
<Button
8080
class="btn btn-sm btn-soft-info agent-chat"
8181
on:click={() => chatWithAgent()}

src/routes/page/agent/card-agent.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
</Link>
7979
</li>
8080
<li class="list-inline-item me-1">
81-
<Link href= "chat/{agent.id}" class="btn btn-primary btn-sm" target="_blank" disabled={!agent.chatable}>
81+
<Link href= "chat/{agent.id}" class="btn btn-primary btn-sm" target="_blank">
8282
<i class="bx bx-chat" /> {$_('Test')}
8383
</Link>
8484
</li>

0 commit comments

Comments
 (0)