mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Merge pull request #918 from omnivore-app/enable-api
Enable API in the dropdown
This commit is contained in:
commit
a0e040c8b1
2 changed files with 8 additions and 0 deletions
|
|
@ -19,6 +19,7 @@ export type HeaderDropdownAction =
|
|||
| 'navigate-to-labels'
|
||||
| 'navigate-to-profile'
|
||||
| 'navigate-to-subscriptions'
|
||||
| 'navigate-to-api'
|
||||
| 'increaseFontSize'
|
||||
| 'decreaseFontSize'
|
||||
| 'logout'
|
||||
|
|
@ -76,6 +77,10 @@ export function DropdownMenu(props: DropdownMenuProps): JSX.Element {
|
|||
onSelect={() => props.actionHandler('navigate-to-labels')}
|
||||
title="Labels"
|
||||
/>
|
||||
<DropdownOption
|
||||
onSelect={() => props.actionHandler('navigate-to-api')}
|
||||
title="API Keys"
|
||||
/>
|
||||
{/* <DropdownOption
|
||||
onSelect={() => props.actionHandler('navigate-to-subscriptions')}
|
||||
title="Subscriptions"
|
||||
|
|
|
|||
|
|
@ -113,6 +113,9 @@ export function PrimaryHeader(props: HeaderProps): JSX.Element {
|
|||
case 'navigate-to-subscriptions':
|
||||
router.push('/settings/subscriptions')
|
||||
break
|
||||
case 'navigate-to-api':
|
||||
router.push('/settings/api')
|
||||
break
|
||||
case 'logout':
|
||||
props.setShowLogoutConfirmation(true)
|
||||
break
|
||||
|
|
|
|||
Loading…
Reference in a new issue