mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
feat: prefer admin settings page over users page (#24780)
This commit is contained in:
@@ -78,7 +78,7 @@
|
|||||||
</Button>
|
</Button>
|
||||||
{#if $user.isAdmin}
|
{#if $user.isAdmin}
|
||||||
<Button
|
<Button
|
||||||
href={AppRoute.ADMIN_USERS}
|
href={AppRoute.ADMIN_SETTINGS}
|
||||||
onclick={onClose}
|
onclick={onClose}
|
||||||
shape="round"
|
shape="round"
|
||||||
variant="ghost"
|
variant="ghost"
|
||||||
|
|||||||
@@ -3,5 +3,5 @@ import { redirect } from '@sveltejs/kit';
|
|||||||
import type { PageLoad } from './$types';
|
import type { PageLoad } from './$types';
|
||||||
|
|
||||||
export const load = (() => {
|
export const load = (() => {
|
||||||
redirect(302, AppRoute.ADMIN_USERS);
|
redirect(302, AppRoute.ADMIN_SETTINGS);
|
||||||
}) satisfies PageLoad;
|
}) satisfies PageLoad;
|
||||||
|
|||||||
Reference in New Issue
Block a user