diff --git a/src/lib/components/layouts/DocumentLayout.svelte b/src/lib/components/layouts/DocumentLayout.svelte index 1c02925bb..b3724dfab 100644 --- a/src/lib/components/layouts/DocumentLayout.svelte +++ b/src/lib/components/layouts/DocumentLayout.svelte @@ -12,7 +12,7 @@ Assumes it's a child of a ViewerContext import { _ } from "svelte-i18n"; import Actions from "../documents/Actions.svelte"; - import AddOns from "$lib/components/common/AddOns.svelte"; + import AddOns from "@/lib/components/sidebar/AddOns.svelte"; import Avatar from "../accounts/Avatar.svelte"; import Data from "../documents/Data.svelte"; import DocumentHeader from "../documents/Header.svelte"; diff --git a/src/lib/components/layouts/Project.svelte b/src/lib/components/layouts/Project.svelte index 478139530..467fcaff0 100644 --- a/src/lib/components/layouts/Project.svelte +++ b/src/lib/components/layouts/Project.svelte @@ -9,7 +9,7 @@ Project, ProjectUser, } from "$lib/api/types"; - import AddOns from "$lib/components/common/AddOns.svelte"; + import AddOns from "@/lib/components/sidebar/AddOns.svelte"; import Collaborators from "$lib/components/projects/Collaborators.svelte"; import ProjectActions from "$lib/components/projects/ProjectActions.svelte"; import ProjectHeader from "$lib/components/projects/ProjectHeader.svelte"; diff --git a/src/lib/components/layouts/stories/AppLayout.stories.svelte b/src/lib/components/layouts/stories/AppLayout.stories.svelte index 090437329..445a5ad7c 100644 --- a/src/lib/components/layouts/stories/AppLayout.stories.svelte +++ b/src/lib/components/layouts/stories/AppLayout.stories.svelte @@ -6,12 +6,12 @@ import DocumentBrowser from "../DocumentBrowser.svelte"; import SidebarLayout from "../SidebarLayout.svelte"; - import Documents from "@/routes/(app)/documents/sidebar/Documents.svelte"; - import Projects from "@/routes/(app)/documents/sidebar/Projects.svelte"; + import Documents from "@/lib/components/sidebar/Documents.svelte"; + import Projects from "@/lib/components/sidebar/Projects.svelte"; import Button from "../../common/Button.svelte"; import { PlusCircle16 } from "svelte-octicons"; import BulkActions from "$lib/components/documents/BulkActions.svelte"; - import AddOns from "$lib/components/common/AddOns.svelte"; + import AddOns from "@/lib/components/sidebar/AddOns.svelte"; import { documentsList } from "@/test/fixtures/documents"; import { addons } from "@/test/handlers/addons"; diff --git a/src/lib/components/layouts/stories/SidebarLayout.stories.svelte b/src/lib/components/layouts/stories/SidebarLayout.stories.svelte index cfbe4faf5..aa5afb59e 100644 --- a/src/lib/components/layouts/stories/SidebarLayout.stories.svelte +++ b/src/lib/components/layouts/stories/SidebarLayout.stories.svelte @@ -6,12 +6,11 @@ import SidebarLayout from "../SidebarLayout.svelte"; import DocumentBrowser from "../DocumentBrowser.svelte"; + import AddOns from "@/lib/components/sidebar/AddOns.svelte"; import Button from "$lib/components/common/Button.svelte"; - import BulkActions from "$lib/components/documents/BulkActions.svelte"; - import AddOns from "@/lib/components/common/AddOns.svelte"; - import Documents from "@/routes/(app)/documents/sidebar/Documents.svelte"; - import Projects from "@/routes/(app)/documents/sidebar/Projects.svelte"; + import Documents from "$lib/components/sidebar/Documents.svelte"; + import Projects from "$lib/components/sidebar/Projects.svelte"; import { documentsList } from "@/test/fixtures/documents"; import { activeAddons } from "@/test/fixtures/addons"; diff --git a/src/lib/components/projects/ProjectActions.svelte b/src/lib/components/projects/ProjectActions.svelte index b92545f61..be1c36e02 100644 --- a/src/lib/components/projects/ProjectActions.svelte +++ b/src/lib/components/projects/ProjectActions.svelte @@ -48,20 +48,9 @@ function hide() { show = null; } - - function onUploadClick() { - $uploadToProject = project; - goto("/upload/"); - }