Skip to content

Commit

Permalink
Disable download link if collection not populated
Browse files Browse the repository at this point in the history
  • Loading branch information
jdavcs committed May 10, 2024
1 parent 880f3ef commit f218a39
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ const rerunUrl = computed(() =>
const showCollectionDetailsUrl = computed(() =>
props.dsc.job_source_type == "Job" ? `/jobs/${props.dsc.job_source_id}/view` : null
);
const disableDownload = props.dsc.populated_state !== "ok";
function onDownload() {
window.location.href = downloadUrl.value;
}
Expand All @@ -28,6 +30,7 @@ function onDownload() {
<b-button-group>
<b-button
title="Download Collection"
:disabled="disableDownload"
class="rounded-0 text-decoration-none"
size="sm"
variant="link"
Expand Down

0 comments on commit f218a39

Please sign in to comment.