Skip to content

Commit

Permalink
Merge pull request #265 from iceljc/features/refine-chat-window
Browse files Browse the repository at this point in the history
temp change
  • Loading branch information
iceljc authored Nov 6, 2024
2 parents 75114ea + 16351fd commit 167f33a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/routes/chat/[agentId]/[conversationId]/chat-box.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@
}
$: {
disableAction = !ADMIN_ROLES.includes(currentUser?.role || '') && currentUser?.id !== conversationUser?.id || !agent?.chatable;
disableAction = !ADMIN_ROLES.includes(currentUser?.role || '') && currentUser?.id !== conversationUser?.id;
}
setContext('chat-window-context', {
Expand Down
2 changes: 1 addition & 1 deletion src/routes/page/agent/[agentId]/agent-overview.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
height="50"
class="mx-auto d-block"
/>
{#if !!agent.chatable}
{#if 1}
<Button
class="btn btn-sm btn-soft-info agent-chat"
on:click={() => chatWithAgent()}
Expand Down
2 changes: 1 addition & 1 deletion src/routes/page/agent/card-agent.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
</Link>
</li>
<li class="list-inline-item me-1">
<Link href= "chat/{agent.id}" class="btn btn-primary btn-sm" target="_blank" disabled={!agent.chatable}>
<Link href= "chat/{agent.id}" class="btn btn-primary btn-sm" target="_blank">
<i class="bx bx-chat" /> {$_('Test')}
</Link>
</li>
Expand Down

0 comments on commit 167f33a

Please sign in to comment.