mirror of
https://github.com/immich-app/immich.git
synced 2024-12-26 10:50:29 +02:00
Create real anchors around admin sidebar buttons (#3925)
This commit is contained in:
parent
66cc744c22
commit
c0a48d7357
@ -12,7 +12,6 @@
|
|||||||
import Cog from 'svelte-material-icons/Cog.svelte';
|
import Cog from 'svelte-material-icons/Cog.svelte';
|
||||||
import Server from 'svelte-material-icons/Server.svelte';
|
import Server from 'svelte-material-icons/Server.svelte';
|
||||||
import StatusBox from '$lib/components/shared-components/status-box.svelte';
|
import StatusBox from '$lib/components/shared-components/status-box.svelte';
|
||||||
import { goto } from '$app/navigation';
|
|
||||||
import { AppRoute } from '../../lib/constants';
|
import { AppRoute } from '../../lib/constants';
|
||||||
import type { LayoutData } from './$types';
|
import type { LayoutData } from './$types';
|
||||||
import SideBarSection from '$lib/components/shared-components/side-bar/side-bar-section.svelte';
|
import SideBarSection from '$lib/components/shared-components/side-bar/side-bar-section.svelte';
|
||||||
@ -40,30 +39,22 @@
|
|||||||
|
|
||||||
<UserPageLayout user={data.user} showUploadButton={false} title={getPageTitle(data.routeId)}>
|
<UserPageLayout user={data.user} showUploadButton={false} title={getPageTitle(data.routeId)}>
|
||||||
<SideBarSection slot="sidebar">
|
<SideBarSection slot="sidebar">
|
||||||
|
<a data-sveltekit-preload-data="hover" href={AppRoute.ADMIN_USER_MANAGEMENT} draggable="false">
|
||||||
<SideBarButton
|
<SideBarButton
|
||||||
title="Users"
|
title="Users"
|
||||||
logo={AccountMultipleOutline}
|
logo={AccountMultipleOutline}
|
||||||
isSelected={data.routeId === AppRoute.ADMIN_USER_MANAGEMENT}
|
isSelected={data.routeId === AppRoute.ADMIN_USER_MANAGEMENT}
|
||||||
on:selected={() => goto(AppRoute.ADMIN_USER_MANAGEMENT)}
|
|
||||||
/>
|
|
||||||
<SideBarButton
|
|
||||||
title="Jobs"
|
|
||||||
logo={Sync}
|
|
||||||
isSelected={data.routeId === AppRoute.ADMIN_JOBS}
|
|
||||||
on:selected={() => goto(AppRoute.ADMIN_JOBS)}
|
|
||||||
/>
|
|
||||||
<SideBarButton
|
|
||||||
title="Settings"
|
|
||||||
logo={Cog}
|
|
||||||
isSelected={data.routeId === AppRoute.ADMIN_SETTINGS}
|
|
||||||
on:selected={() => goto(AppRoute.ADMIN_SETTINGS)}
|
|
||||||
/>
|
|
||||||
<SideBarButton
|
|
||||||
title="Server Stats"
|
|
||||||
logo={Server}
|
|
||||||
isSelected={data.routeId === AppRoute.ADMIN_STATS}
|
|
||||||
on:selected={() => goto(AppRoute.ADMIN_STATS)}
|
|
||||||
/>
|
/>
|
||||||
|
</a>
|
||||||
|
<a data-sveltekit-preload-data="hover" href={AppRoute.ADMIN_JOBS} draggable="false">
|
||||||
|
<SideBarButton title="Jobs" logo={Sync} isSelected={data.routeId === AppRoute.ADMIN_JOBS} />
|
||||||
|
</a>
|
||||||
|
<a data-sveltekit-preload-data="hover" href={AppRoute.ADMIN_SETTINGS} draggable="false">
|
||||||
|
<SideBarButton title="Settings" logo={Cog} isSelected={data.routeId === AppRoute.ADMIN_SETTINGS} />
|
||||||
|
</a>
|
||||||
|
<a data-sveltekit-preload-data="hover" href={AppRoute.ADMIN_STATS} draggable="false">
|
||||||
|
<SideBarButton title="Server Stats" logo={Server} isSelected={data.routeId === AppRoute.ADMIN_STATS} />
|
||||||
|
</a>
|
||||||
<div class="mb-6 mt-auto">
|
<div class="mb-6 mt-auto">
|
||||||
<StatusBox />
|
<StatusBox />
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user