File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
src/lib/components/chat/ModelSelector Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -1142,9 +1142,10 @@ async def get_app_config(request: Request):
11421142 if data is not None and "id" in data :
11431143 user = Users .get_user_by_id (data ["id" ])
11441144
1145+ user_count = Users .get_num_users ()
11451146 onboarding = False
1147+
11461148 if user is None :
1147- user_count = Users .get_num_users ()
11481149 onboarding = user_count == 0
11491150
11501151 return {
@@ -1213,6 +1214,14 @@ async def get_app_config(request: Request):
12131214 "api_key" : GOOGLE_DRIVE_API_KEY .value ,
12141215 },
12151216 "onedrive" : {"client_id" : ONEDRIVE_CLIENT_ID .value },
1217+ ** (
1218+ {
1219+ "record_count" : user_count ,
1220+ "active_entries" : app .state .USER_COUNT ,
1221+ }
1222+ if user .role == "admin"
1223+ else {}
1224+ ),
12161225 }
12171226 if user is not None
12181227 else {}
Original file line number Diff line number Diff line change 334334 <button
335335 class ="min-w-fit outline-none p-1.5 {selectedTag === ' '
336336 ? ' '
337- : ' text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white' } transition"
337+ : ' text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white' } transition capitalize "
338338 on:click ={() => {
339339 selectedTag = ' ' ;
340340 }}
346346 <button
347347 class ="min-w-fit outline-none p-1.5 {selectedTag === tag
348348 ? ' '
349- : ' text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white' } transition"
349+ : ' text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white' } transition capitalize "
350350 on:click ={() => {
351351 selectedTag = tag ;
352352 }}
You can’t perform that action at this time.
0 commit comments