X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/8095c4a7852131043b682b809ed78ca65386dd30..9ee35a64c605f116aec71f78c65b54730d6e1076:/src/views-components/context-menu/actions/download-collection-file-action.tsx diff --git a/src/views-components/context-menu/actions/download-collection-file-action.tsx b/src/views-components/context-menu/actions/download-collection-file-action.tsx index 3e4e4a0b..e1986d3c 100644 --- a/src/views-components/context-menu/actions/download-collection-file-action.tsx +++ b/src/views-components/context-menu/actions/download-collection-file-action.tsx @@ -13,7 +13,9 @@ import { sanitizeToken } from "./helpers"; const mapStateToProps = (state: RootState) => { const { resource } = state.contextMenu; const currentCollectionUuid = state.collectionPanel.item ? state.collectionPanel.item.uuid : ''; - if (resource && resource.menuKind === ContextMenuKind.COLLECTION_FILES_ITEM) { + if (resource && ( + resource.menuKind === ContextMenuKind.COLLECTION_FILES_ITEM || + resource.menuKind === ContextMenuKind.READONLY_COLLECTION_FILES_ITEM)) { const file = getNodeValue(resource.uuid)(state.collectionPanelFiles); if (file) { return {