[UI] User management spotlight (#12144)

Add spotlight action to quickly jump to user management panel
This commit is contained in:
Oliver 2026-06-10 14:06:03 +10:00 committed by GitHub
parent 9ee189a16b
commit 245a002428
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 12 additions and 1 deletions

View File

@ -9,7 +9,8 @@ import {
IconSettings,
IconTags,
IconUserBolt,
IconUserCog
IconUserCog,
IconUsers
} from '@tabler/icons-react';
import type { NavigateFunction } from 'react-router-dom';
@ -213,6 +214,16 @@ export function getActions(navigate: NavigateFunction) {
leftSection: <IconReport size='1.2rem' />
});
staff &&
user?.hasViewPermission(ModelType.user) &&
_actions.push({
id: 'users',
label: t`Users`,
description: t`Manage user accounts`,
onClick: () => navigate('/settings/admin/user'),
leftSection: <IconUsers size='1.2rem' />
});
staff &&
user?.hasViewPermission(ModelType.pluginconfig) &&
_actions.push({