Skip to content

Commit

Permalink
temp change
Browse files Browse the repository at this point in the history
  • Loading branch information
Jicheng Lu committed Nov 6, 2024
1 parent 615050c commit 16351fd
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 16351fd

Please sign in to comment.