Merge pull request #593 from omnivore-app/fix/open-original-web

Allow opening original URL from the card menu
This commit is contained in:
Jackson Harper 2022-05-11 19:21:41 -07:00 committed by GitHub
commit 88f39361a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,6 +13,7 @@ export type CardMenuDropdownAction =
| 'share'
| 'snooze'
| 'set-labels'
| 'showOriginal'
type CardMenuProps = {
item: LibraryItemNode
@ -41,6 +42,10 @@ export function CardMenu(props: CardMenuProps): JSX.Element {
}}
title="Set Labels"
/>
<DropdownOption
onSelect={() => props.actionHandler('showOriginal')}
title="Open Original"
/>
{isVipUser(props.viewer) && (
<DropdownOption
onSelect={() => {