Skip to content

Commit

Permalink
Restore "Your Documents" nav item
Browse files Browse the repository at this point in the history
  • Loading branch information
allanlasser committed Nov 25, 2024
1 parent 2f3baee commit 7fd68f7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib/components/sidebar/Documents.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Globe16,
Lock16,
Organization16,
Person16,
} from "svelte-octicons";
import { page } from "$app/stores";
Expand All @@ -28,6 +29,7 @@
$: query = $page.url.searchParams?.get("q") || "";
$: mine = $me ? userDocs($me) : "";
$: minePublic = $me ? userDocs($me, "public") : "";
$: minePrivate = $me ? userDocs($me, "private") : "";
Expand Down Expand Up @@ -60,6 +62,10 @@
{$_("common.explore")}
</Button>
<SignedIn>
<SidebarItem small hover href={searchUrl(mine)} active={query === mine}>
<Person16 slot="start" />
{$_("documents.yourDocuments")}
</SidebarItem>
<SidebarItem
small
hover
Expand Down

0 comments on commit 7fd68f7

Please sign in to comment.