diff --git a/src/routes/(app)/projects/+page.svelte b/src/routes/(app)/projects/+page.svelte index 4c3648e29..e3288b75f 100644 --- a/src/routes/(app)/projects/+page.svelte +++ b/src/routes/(app)/projects/+page.svelte @@ -2,33 +2,29 @@ import type { Nullable } from "$lib/api/types"; import { _ } from "svelte-i18n"; - import { - FileDirectory24, - People16, - Person16, - Globe16, - } from "svelte-octicons"; + import { FileDirectory24, SidebarExpand16 } from "svelte-octicons"; import { goto } from "$app/navigation"; import { page } from "$app/stores"; import Button from "$lib/components/common/Button.svelte"; - import ContentLayout from "$lib/components/layouts/ContentLayout.svelte"; import Empty from "$lib/components/common/Empty.svelte"; + import Flex from "$lib/components/common/Flex.svelte"; import PageToolbar from "$lib/components/common/PageToolbar.svelte"; import Paginator from "$lib/components/common/Paginator.svelte"; - import ProjectListItem from "$lib/components/projects/ProjectListItem.svelte"; + import EditProject from "$lib/components/forms/EditProject.svelte"; import Search from "$lib/components/forms/Search.svelte"; - import SidebarLayout from "@/lib/components/layouts/SidebarLayout.svelte"; - - import EditProject from "@/lib/components/forms/EditProject.svelte"; + import ContentLayout from "$lib/components/layouts/ContentLayout.svelte"; import Modal from "$lib/components/layouts/Modal.svelte"; import Portal from "$lib/components/layouts/Portal.svelte"; + import SidebarLayout from "$lib/components/layouts/SidebarLayout.svelte"; + import ProjectListItem from "$lib/components/projects/ProjectListItem.svelte"; + import Documents from "$lib/components/sidebar/Documents.svelte"; + import Projects from "$lib/components/sidebar/Projects.svelte"; + import AddOns from "$lib/components/sidebar/AddOns.svelte"; + import { sidebars } from "$lib/components/layouts/Sidebar.svelte"; import { getCurrentUser } from "$lib/utils/permissions"; - import Documents from "@/lib/components/sidebar/Documents.svelte"; - import Projects from "@/lib/components/sidebar/Projects.svelte"; - import AddOns from "@/lib/components/sidebar/AddOns.svelte"; const me = getCurrentUser(); @@ -64,14 +60,42 @@ - - - + + + {#if $sidebars["navigation"] === false} +
+ +
+ {/if} + + + + {#if $sidebars["action"] === false} +
+ +
+ {/if} +
+
{#each projects as project} @@ -107,3 +131,18 @@ {/if} + +