diff --git a/src/lib/components/chat/Placeholder/FolderNotes.svelte b/src/lib/components/chat/Placeholder/FolderNotes.svelte index 8f30e454d7..5e43d025a3 100644 --- a/src/lib/components/chat/Placeholder/FolderNotes.svelte +++ b/src/lib/components/chat/Placeholder/FolderNotes.svelte @@ -71,7 +71,10 @@
{:else if !notes.length}
-
{$i18n.t('No Notes')}
+
{$i18n.t('No notes yet')}
+
+ {$i18n.t('Notes in this folder will show up here.')} +
{#if canCreate}
+ {#if canManageTeam} + + teams.update((list) => list.map((item) => (item.id === next.id ? next : item)))} + /> + {/if} + {#if open && subTeams.length}
item.id === id); + $: if (team && storedTeam && storedTeam.updated_at > team.updated_at) + team = { ...team, ...storedTeam }; + const setTeam = (next: Team) => { team = next; teams.update((list) => list.map((item) => (item.id === next.id ? next : item))); diff --git a/src/lib/components/teams/TeamMenu.svelte b/src/lib/components/teams/TeamMenu.svelte index ac432c5d1d..c61cc61309 100644 --- a/src/lib/components/teams/TeamMenu.svelte +++ b/src/lib/components/teams/TeamMenu.svelte @@ -19,13 +19,15 @@ export let onUnarchive: (() => void) | null = null; export let onLeave: (() => void) | null = null; export let onDelete: (() => void) | null = null; + // Beside a page title it opens leftward; in the sidebar it opens rightward, as FolderMenu does. + export let align: 'start' | 'end' = 'end'; const row = 'flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[0.8125rem] select-none cursor-pointer hover:bg-base-100 dark:hover:bg-base-900'; const divider = 'border-base-50/30 dark:border-base-800/30 mx-1 my-0.5'; - + -
- -
-
-
- -
- (icon = value ?? '')} - > - - - -
-
- - -
- +
- -
- -