From 649ff04a3b9ad168a54eeadba08702c2f9c890ff Mon Sep 17 00:00:00 2001 From: Laila Los <44241786+ElectronicBlueberry@users.noreply.github.com> Date: Fri, 11 Oct 2024 22:01:23 +0200 Subject: [PATCH] remove h-screen from workflow details page --- website/pages/workflow/[id].vue | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/website/pages/workflow/[id].vue b/website/pages/workflow/[id].vue index 4aa0f9caa..d88b12c5f 100644 --- a/website/pages/workflow/[id].vue +++ b/website/pages/workflow/[id].vue @@ -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"); } @@ -129,7 +128,7 @@ const onInstanceChange = (value: string) => {