Skip to content

Commit eb1e1fd

Browse files
Backlog/v12 api key settings (#2381)
* feat[frontend](settings/api-key): added apikey on settings section * feat[frontend](settings/api-key): added apikey on settings section sidebar
1 parent e630c58 commit eb1e1fd

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

frontend/src/shared/layouts/DashboardLayout/Sidebar.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import {
1717
Home,
1818
Info,
1919
KeyRound,
20+
KeySquare,
2021
Languages,
2122
LayoutDashboard,
2223
Mail,
@@ -41,6 +42,7 @@ import {
4142
import { useTranslation } from 'react-i18next'
4243
import { cn } from '@/shared/lib/utils'
4344
import { useAuth } from '@/features/auth'
45+
import { IS_FEDERATION } from '@/shared/config/mode'
4446

4547
type LeafItem = {
4648
to: string
@@ -135,6 +137,9 @@ const settingsItems: { to: string; label: string; icon: LucideIcon }[] = [
135137
{ to: '/settings/data-retention', label: 'settings.dataRetention', icon: HardDriveDownload },
136138
{ to: '/settings/indices', label: 'settings.indices', icon: Boxes },
137139
{ to: '/settings/branding', label: 'settings.branding', icon: Palette },
140+
...(!IS_FEDERATION
141+
? [{ to: '/settings/api-keys', label: 'settings.apiKeys', icon: KeySquare }]
142+
: []),
138143
{ to: '/settings/identity-providers', label: 'settings.identityProviders', icon: ShieldCheck },
139144
{ to: '/settings/email', label: 'settings.email', icon: Mail },
140145
{ to: '/settings/soc-ai', label: 'settings.socAi', icon: Bot },

0 commit comments

Comments
 (0)