Skip to content

Commit

Permalink
uploader links in new tab
Browse files Browse the repository at this point in the history
  • Loading branch information
mbaudis committed Feb 20, 2024
1 parent 8bcf733 commit c77c26e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/components/helpersShared/linkHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export function ExternalLink({ href, label, onClick }) {
}

export function BeaconRESTLink({ entryType, idValue, responseType, datasetIds, label, output }) {

const responseTypeOpt = responseType ? `/${responseType}` : ""
const outputOpt = output ? `&output=${output}` : ""

Expand Down
24 changes: 17 additions & 7 deletions src/modules/service-pages/FileLoaderPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import { useDropzone } from "react-dropzone"
import { uploadFile } from "../../hooks/api"
// import { getVisualizationLink } from "../service-pages/dataVisualizationPage"
// import { SubsetHistogram } from "../../components/SVGloaders"
import Link from "next/link"
// import Link from "next/link"
// import ExternalLink from "../../components/helpersShared/linkHelpers"
import Panel from "../../components/Panel"

export default function FileLoaderPage() {
Expand Down Expand Up @@ -197,12 +198,21 @@ function Results({ results, onCancelClicked }) {
<a className="button is-link">Visualization form</a>
</Link>
*/}
<Link href={histoPlotLink}>
<a className="button is-link">CNV Histogram</a>
</Link>
<Link href={samplesPlotLink}>
<a className="button is-link">Samples Plot</a>
</Link>
<a
href={histoPlotLink}
className="button is-link"
rel="noreferrer"
target="_blank">
CNV Histogram
</a>
{" "}
<a
href={samplesPlotLink}
className="button is-link"
rel="noreferrer"
target="_blank">
Samples Plot
</a>
</p>
or{" "}
<button onClick={onCancelClicked} className="button-link button-text">
Expand Down

0 comments on commit c77c26e

Please sign in to comment.