Allow opening original URL from the card menu

This commit is contained in:
Jackson Harper
2022-05-11 19:13:15 -07:00
parent 40eda0a6ca
commit 9cb314feee

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={() => {