Skip to content

Commit

Permalink
fix(ui): pcollapsed block download button click behavior (#409)
Browse files Browse the repository at this point in the history
Signed-off-by: Elizabeth Kelen <erskelen@gmail.com>
  • Loading branch information
ekelen authored Oct 14, 2020
1 parent af29cb9 commit 998d694
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions web/src/ui/components/Build/BuildContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,21 +113,25 @@ const DlButtonSmall = ({ buildHasArtifacts, theme }) => buildHasArtifacts && (

const hasDlUrl = fullPlistSignedUrl || fullDlArtifactSignedUrl
return (
<a
<div
onClick={(e) => e.stopPropagation()}
key={`${artifactPlistSignedUrl}=${i}`}
href={hasDlUrl}
className="btn btn-sm"
style={{
...primaryButtonColors(theme),
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
}}
title={hasDlUrl}
>
<Download size="1rem" style={{ marginRight: '0.3rem' }} />
{`.${ARTIFACT_KIND_NAMES[artifactKind]}`}
</a>
<a
href={hasDlUrl}
className="btn btn-sm"
style={{
...primaryButtonColors(theme),
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
}}
title={hasDlUrl}
>
<Download size="1rem" style={{ marginRight: '0.3rem' }} />
{`.${ARTIFACT_KIND_NAMES[artifactKind]}`}
</a>
</div>
)
})}
</>
Expand Down

0 comments on commit 998d694

Please sign in to comment.