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-labels'
|
||||||
| 'navigate-to-profile'
|
| 'navigate-to-profile'
|
||||||
| 'navigate-to-subscriptions'
|
| 'navigate-to-subscriptions'
|
||||||
|
| 'navigate-to-api'
|
||||||
| 'increaseFontSize'
|
| 'increaseFontSize'
|
||||||
| 'decreaseFontSize'
|
| 'decreaseFontSize'
|
||||||
| 'logout'
|
| 'logout'
|
||||||
|
|
@ -76,6 +77,10 @@ export function DropdownMenu(props: DropdownMenuProps): JSX.Element {
|
||||||
onSelect={() => props.actionHandler('navigate-to-labels')}
|
onSelect={() => props.actionHandler('navigate-to-labels')}
|
||||||
title="Labels"
|
title="Labels"
|
||||||
/>
|
/>
|
||||||
|
<DropdownOption
|
||||||
|
onSelect={() => props.actionHandler('navigate-to-api')}
|
||||||
|
title="API Keys"
|
||||||
|
/>
|
||||||
{/* <DropdownOption
|
{/* <DropdownOption
|
||||||
onSelect={() => props.actionHandler('navigate-to-subscriptions')}
|
onSelect={() => props.actionHandler('navigate-to-subscriptions')}
|
||||||
title="Subscriptions"
|
title="Subscriptions"
|
||||||
|
|
|
||||||
|
|
@ -113,6 +113,9 @@ export function PrimaryHeader(props: HeaderProps): JSX.Element {
|
||||||
case 'navigate-to-subscriptions':
|
case 'navigate-to-subscriptions':
|
||||||
router.push('/settings/subscriptions')
|
router.push('/settings/subscriptions')
|
||||||
break
|
break
|
||||||
|
case 'navigate-to-api':
|
||||||
|
router.push('/settings/api')
|
||||||
|
break
|
||||||
case 'logout':
|
case 'logout':
|
||||||
props.setShowLogoutConfirmation(true)
|
props.setShowLogoutConfirmation(true)
|
||||||
break
|
break
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue