Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subpackage download, frontend #2258

Merged
merged 3 commits into from
Jul 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions catalog/app/containers/Bucket/PackageTree.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,10 @@ function DirDisplay({
logicalKey: path + o.name,
}))

const downloadPath = path
? `package/${bucket}/${name}/${hash}/${path}`
: `package/${bucket}/${name}/${hash}`

return (
<>
<PackageCopyDialog
Expand Down Expand Up @@ -318,8 +322,8 @@ function DirDisplay({
{!noDownload && (
<FileView.ZipDownloadForm
className={classes.button}
label="Download package"
suffix={`package/${bucket}/${name}/${hash}`}
label={path ? 'Download sub-package' : 'Download package'}
suffix={downloadPath}
/>
)}
{preferences?.ui?.actions?.deleteRevision && (
Expand Down
1 change: 1 addition & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
* [Added] Managing per-bucket permissions via admin UI ([#2228](https://github.com/quiltdata/quilt/pull/2228))
* [Added] Deep search indexing for Excel ([#2247](https://github.com/quiltdata/quilt/pull/2247))
* [Added] Deep search indexing for PDF ([#2256](https://github.com/quiltdata/quilt/pull/2256))
* [Added] Subpackage download ([#2258](https://github.com/quiltdata/quilt/pull/2258))
* [Changed] New DataGrid-based file listing UI with arbitrary sorting and filtering ([#2097](https://github.com/quiltdata/quilt/pull/2097))
* [Changed] Item selection in folder-to-package dialog ([#2122](https://github.com/quiltdata/quilt/pull/2122))
* [Changed] Don't preview .tif (but keep .tiff), preview .results as plain text ([#2128](https://github.com/quiltdata/quilt/pull/2128))
Expand Down