File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
chat/[agentId]/[conversationId] Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 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' , {
Original file line number Diff line number Diff line change 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()}
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments