Skip to content

Commit

Permalink
#800 Update ui build-providence ViewSBOM button to only appear if the…
Browse files Browse the repository at this point in the history
…re is a valid sbom url.
  • Loading branch information
mike-winberry committed May 21, 2023
1 parent f4479f0 commit 903dfcb
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/ui/lib/components/build-providence.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,13 @@
the build and where the package was created. SBOM includes information on all of the code,
images, and resources contained in this package.
</span>
<ButtonDense
slot="actions"
variant="outlined"
href={sbomUrl}
target="_blank"
backgroundColor="white"
>
view sbom
</ButtonDense>
<svelte:fragment slot="actions">
{#if sbomUrl}
<ButtonDense variant="outlined" href={sbomUrl} target="_blank" backgroundColor="white">
view sbom
</ButtonDense>
{/if}
</svelte:fragment>
</PackageSectionHeader>
<Box {ssx}>
<Typography variant="subtitle2">Build Providence</Typography>
Expand Down

0 comments on commit 903dfcb

Please sign in to comment.