mirror of
https://github.com/immich-app/immich.git
synced 2026-07-28 14:47:30 -07:00
feat(web): add maintenance link to command palette (#30016)
This commit is contained in:
@@ -25,6 +25,7 @@ import {
|
||||
mdiThemeLightDark,
|
||||
mdiToolboxOutline,
|
||||
mdiTrashCanOutline,
|
||||
mdiWrench,
|
||||
} from '@mdi/js';
|
||||
import type { MessageFormatter } from 'svelte-i18n';
|
||||
import { goto } from '$app/navigation';
|
||||
@@ -66,6 +67,12 @@ export const getPagesProvider = ($t: MessageFormatter) => {
|
||||
icon: mdiServer,
|
||||
onAction: () => goto(Route.systemStatistics()),
|
||||
},
|
||||
{
|
||||
title: $t('admin.maintenance_settings'),
|
||||
description: $t('admin.maintenance_settings_description'),
|
||||
icon: mdiWrench,
|
||||
onAction: () => goto(Route.systemMaintenance()),
|
||||
},
|
||||
].map((route) => ({ ...route, $if: () => authManager.authenticated && authManager.user.isAdmin }));
|
||||
|
||||
const userPages: ActionItem[] = [
|
||||
|
||||
Reference in New Issue
Block a user