Skip to content

Commit

Permalink
Merge pull request #571 from ElectronicBlueberry/fix-run-button-not-v…
Browse files Browse the repository at this point in the history
…isible

Fix run button not fully visible
  • Loading branch information
dannon authored Oct 13, 2024
2 parents 1ae2973 + 649ff04 commit 0a04aff
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions website/pages/workflow/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,24 +54,23 @@ function testToRequestState() {
}
function trsIdAndVersionToDockstoreUrl(trs_id: string, trs_version: string) {
return `https://dockstore.org/api/ga4gh/trs/v2/tools/${trs_id}/versions/${trs_version}`
return `https://dockstore.org/api/ga4gh/trs/v2/tools/${trs_id}/versions/${trs_version}`;
}
async function createLandingPage() {
const job = testToRequestState()
const trs_url = trsIdAndVersionToDockstoreUrl(workflow.value?.trsID!, `v${workflow.value?.definition.release}`)
const job = testToRequestState();
const trs_url = trsIdAndVersionToDockstoreUrl(workflow.value?.trsID!, `v${workflow.value?.definition.release}`);
const response = await fetch(`${selectedInstance.value}/api/workflow_landings`, {
headers: { "Content-Type": "application/json" },
method: "POST",
body: JSON.stringify({
workflow_id: trs_url,
workflow_target_type: "trs_url",
request_state: job
})
})
request_state: job,
}),
});
const json = await response.json();
const landingPage = `${selectedInstance.value}/workflow_landings/${json['uuid']}`;
const landingPage = `${selectedInstance.value}/workflow_landings/${json["uuid"]}`;
window.open(landingPage, "_blank");
}
Expand Down Expand Up @@ -129,7 +128,7 @@ const onInstanceChange = (value: string) => {
</script>

<template>
<div v-if="workflow" class="flex h-screen">
<div v-if="workflow" class="flex">
<!-- Left sidebar -->
<div class="w-1/4 p-4 overflow-y-auto">
<div class="sticky top-4 h-16">
Expand Down

0 comments on commit 0a04aff

Please sign in to comment.