This commit is contained in:
Timothy Jaeryang Baek committed 2026-06-25 03:26:17 +01:00
1 parent 1111a3a222
commit 1457f2dec8
4 files changed
+11 -10

No files matched your search

+1 -3
View File
@@ -3178,9 +3178,7 @@
{#if readOnly} {#if readOnly}
<div class="pb-6 z-10"> <div class="pb-6 z-10">
<div <div class="text-xs text-gray-400 dark:text-gray-500 text-center">
class="text-xs text-gray-400 dark:text-gray-500 text-center"
>
{$i18n.t('Read only')} {$i18n.t('Read only')}
</div> </div>
</div> </div>
+5 -1
View File
@@ -123,7 +123,11 @@
" "
> >
{#if showModelSelector} {#if showModelSelector}
<ModelSelector bind:selectedModels showSetDefault={!shareEnabled && !readOnly} disabled={readOnly} /> <ModelSelector
bind:selectedModels
showSetDefault={!shareEnabled && !readOnly}
disabled={readOnly}
/>
{/if} {/if}
</div> </div>
@@ -55,7 +55,6 @@
let orderBy = 'updated_at'; let orderBy = 'updated_at';
let direction = 'desc'; // 'asc' or 'desc' let direction = 'desc'; // 'asc' or 'desc'
$: if (chats) { $: if (chats) {
init(); init();
} }
@@ -38,18 +38,18 @@
if (folder && folder.id) { if (folder && folder.id) {
// Always use the shared folder endpoint so owners also see // Always use the shared folder endpoint so owners also see
// chats created by users who have write access to this folder. // chats created by users who have write access to this folder.
const res = await getSharedFolderChats(localStorage.token, folder.id).catch( const res = await getSharedFolderChats(localStorage.token, folder.id).catch((error) => {
(error) => {
console.error(error); console.error(error);
return null; return null;
} });
);
if (res && res.chats) { if (res && res.chats) {
chats = res.chats; chats = res.chats;
allChatsLoaded = true; allChatsLoaded = true;
} else { } else {
// Fallback to regular API (e.g. if user has no shared access) // Fallback to regular API (e.g. if user has no shared access)
const fallback = await getChatListByFolderId(localStorage.token, folder.id, page).catch(() => []); const fallback = await getChatListByFolderId(localStorage.token, folder.id, page).catch(
() => []
);
chats = fallback || []; chats = fallback || [];
} }
} else { } else {