mirror of
https://github.com/immich-app/immich
synced 2026-08-15 13:03:57 +00:00
feat(web): add maintenance link to command palette (#30016)
This commit is contained in:
parent
755df23b22
commit
e6fff3b15e
1 changed files with 7 additions and 0 deletions
|
|
@ -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[] = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue