mirror of
https://github.com/immich-app/immich.git
synced 2026-03-11 20:57:40 +03:00
feat(server,web): migrate oauth settings from env to system config (#1061)
This commit is contained in:
12
web/src/routes/admin/jobs-status/+page.server.ts
Normal file
12
web/src/routes/admin/jobs-status/+page.server.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { redirect } from '@sveltejs/kit';
|
||||
import type { PageServerLoad } from './$types';
|
||||
|
||||
export const load: PageServerLoad = async ({ parent }) => {
|
||||
const { user } = await parent();
|
||||
|
||||
if (!user) {
|
||||
throw redirect(302, '/auth/login');
|
||||
} else if (!user.isAdmin) {
|
||||
throw redirect(302, '/photos');
|
||||
}
|
||||
};
|
||||
11
web/src/routes/admin/jobs-status/+page.svelte
Normal file
11
web/src/routes/admin/jobs-status/+page.svelte
Normal file
@@ -0,0 +1,11 @@
|
||||
<script>
|
||||
import JobsPanel from '$lib/components/admin-page/jobs/jobs-panel.svelte';
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
<title>Jobs Status - Immich</title>
|
||||
</svelte:head>
|
||||
|
||||
<section>
|
||||
<JobsPanel />
|
||||
</section>
|
||||
Reference in New Issue
Block a user