File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 9
9
import type { LayoutData } from " ../../routes/$types" ;
10
10
import type { ConvSidebar } from " $lib/types/ConvSidebar" ;
11
11
import { page } from " $app/stores" ;
12
- import { isHuggingChat } from " $lib/utils/isHuggingChat" ;
13
12
14
13
export let conversations: ConvSidebar [] = [];
15
14
export let canLogin: boolean ;
109
108
>
110
109
Theme
111
110
</button >
112
- {#if $page .data .enableAssistants && ( ! isHuggingChat || $page . data . settings . assistants ?. length >= 1 ) }
111
+ {#if $page .data .enableAssistants }
113
112
<a
114
113
href =" {base }/assistants"
115
114
class =" flex h-9 flex-none items-center gap-1.5 rounded-lg pl-2.5 pr-2 text-gray-500 hover:bg-gray-100 dark:text-gray-400 dark:hover:bg-gray-700"
Original file line number Diff line number Diff line change 12
12
13
13
import UserIcon from " ~icons/carbon/user" ;
14
14
import { fade , fly } from " svelte/transition" ;
15
- import { isHuggingChat } from " $lib/utils/isHuggingChat" ;
16
15
export let data;
17
16
18
17
let previousPage: string = base ;
78
77
</a >
79
78
{/each }
80
79
<!-- if its huggingchat, the number of assistants owned by the user must be non-zero to show the UI -->
81
- {#if data .enableAssistants && ( ! isHuggingChat || data . assistants . length >= 1 ) }
80
+ {#if data .enableAssistants }
82
81
<h3 bind:this ={assistantsSection } class =" pb-3 pl-3 pt-5 text-[.8rem] text-gray-800 sm:pl-1" >
83
82
Assistants
84
83
</h3 >
85
-
86
84
{#if ! data .loginEnabled || (data .loginEnabled && !! data .user )}
87
85
<a
88
86
href =" {base }/settings/assistants/new"
You can’t perform that action at this time.
0 commit comments