Skip to content

Commit

Permalink
Merge pull request #371 from GenomicDataInfrastructure/export-dataset…
Browse files Browse the repository at this point in the history
…-in-different-formats

chore: export dataset into different formats
  • Loading branch information
brunopacheco1 authored Aug 5, 2024
2 parents 87fe2f8 + d626a01 commit 54b8cc8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/datasets/[id]/sidebarItems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import Link from "next/link";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faEnvelope, faUser } from "@fortawesome/free-solid-svg-icons";
import AddToBasketButton from "@/components/AddToBasketButton";
import serverConfig from "@/config/serverConfig";

function createDatasetSidebarItems(dataset: RetrievedDataset): SidebarItem[] {
const metaFormats = [
Expand Down Expand Up @@ -56,7 +57,9 @@ function createDatasetSidebarItems(dataset: RetrievedDataset): SidebarItem[] {
{metaFormats.map((item) => (
<div key={item.format}>
<Link
href={`#.${item.format}`}
href={`${serverConfig.discoveryUrl}/api/v1/datasets/${dataset.id}.${item.format}`}
target="_blank"
rel="noopener noreferrer"
className="group flex items-center gap-1"
>
<div
Expand Down

0 comments on commit 54b8cc8

Please sign in to comment.