Skip to content

Commit

Permalink
Disable agent chat if private.
Browse files Browse the repository at this point in the history
  • Loading branch information
Oceania2018 committed Feb 12, 2024
1 parent 5b8f39b commit 61d615d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/routes/page/agent/card-agent.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -64,21 +64,23 @@
<i class="bx bx-calendar me-1" />
{format(agent.updated_datetime, 'short-date')}
</li>
<li class="list-inline-item me-1" id="comments">
<li class="list-inline-item me-1">
<a href= "page/agent/{agent.id}/build" class="btn btn-primary btn-sm" target="_blank">
<i class="bx bx-wrench" /> Build
</a>
</li>
<li class="list-inline-item me-1" id="comments">
</li>
{#if agent.is_public }
<li class="list-inline-item me-1">
<a href= "page/agent/{agent.id}/train" class="btn btn-primary btn-sm" target="_blank">
<i class="bx bx-book-open" /> Train
</a>
</li>
<li class="list-inline-item me-1" id="comments">
<li class="list-inline-item me-1">
<a href= "chat/{agent.id}" class="btn btn-primary btn-sm" target="_blank">
<i class="bx bx-chat" /> Test
</a>
</li>
{/if}
</ul>
</div>
</Card>
Expand Down

0 comments on commit 61d615d

Please sign in to comment.