diff --git a/web/src/lib/components/layouts/user-page-layout.svelte b/web/src/lib/components/layouts/user-page-layout.svelte index b6e9e7a7f7..1358a349ce 100644 --- a/web/src/lib/components/layouts/user-page-layout.svelte +++ b/web/src/lib/components/layouts/user-page-layout.svelte @@ -11,11 +11,7 @@
{#if !hideNavbar} - openFileUploadDialog()} - /> + openFileUploadDialog()} /> {/if} @@ -24,7 +20,9 @@
- + + + {#if title}
diff --git a/web/src/lib/components/shared-components/navigation-bar/navigation-bar.svelte b/web/src/lib/components/shared-components/navigation-bar/navigation-bar.svelte index 3692ee551e..c3ec2a3794 100644 --- a/web/src/lib/components/shared-components/navigation-bar/navigation-bar.svelte +++ b/web/src/lib/components/shared-components/navigation-bar/navigation-bar.svelte @@ -17,7 +17,7 @@ import IconButton from '$lib/components/elements/buttons/icon-button.svelte'; import Cog from 'svelte-material-icons/Cog.svelte'; export let user: UserResponseDto; - export let shouldShowUploadButton = true; + export let showUploadButton = true; let shouldShowAccountInfo = false; let shouldShowAccountInfoPanel = false; @@ -72,7 +72,7 @@ - {#if !$page.url.pathname.includes('/admin') && shouldShowUploadButton} + {#if !$page.url.pathname.includes('/admin') && showUploadButton}
dispatch('uploadClicked')}>
diff --git a/web/src/routes/admin/+layout.svelte b/web/src/routes/admin/+layout.svelte index ee39e3c171..98a16ab1dc 100644 --- a/web/src/routes/admin/+layout.svelte +++ b/web/src/routes/admin/+layout.svelte @@ -6,7 +6,6 @@ // This is an issue in SvelteKit caused by using the page store in layouts and // using transitions on pages: https://github.com/sveltejs/kit/issues/7405 - import NavigationBar from '$lib/components/shared-components/navigation-bar/navigation-bar.svelte'; import SideBarButton from '$lib/components/shared-components/side-bar/side-bar-button.svelte'; import AccountMultipleOutline from 'svelte-material-icons/AccountMultipleOutline.svelte'; import Sync from 'svelte-material-icons/Sync.svelte'; @@ -17,6 +16,7 @@ import { AppRoute } from '../../lib/constants'; import type { LayoutData } from './$types'; import SideBarSection from '$lib/components/shared-components/side-bar/side-bar-section.svelte'; + import UserPageLayout from '$lib/components/layouts/user-page-layout.svelte'; export let data: LayoutData; @@ -38,55 +38,40 @@ }; - + + + goto(AppRoute.ADMIN_USER_MANAGEMENT)} + /> + goto(AppRoute.ADMIN_JOBS)} + /> + goto(AppRoute.ADMIN_SETTINGS)} + /> + goto(AppRoute.ADMIN_STATS)} + /> +
+ +
+
-
-
- - goto(AppRoute.ADMIN_USER_MANAGEMENT)} - /> - goto(AppRoute.ADMIN_JOBS)} - /> - goto(AppRoute.ADMIN_SETTINGS)} - /> - goto(AppRoute.ADMIN_STATS)} - /> -
- -
-
- -
-
-

- {getPageTitle(data.routeId)} -

-
-
- -
-
- -
-
+
+
+
-
+