Loading client/src/components/Workflow/Run/WorkflowRun.vue +52 −41 Original line number Diff line number Diff line Loading @@ -77,11 +77,13 @@ function handleSubmissionError(error: string) { submissionError.value = errorMessageAsString(error); } function loadRun() { getRunData(props.workflowId, props.version || undefined) .then((runData) => { async function loadRun() { try { const runData = await getRunData(props.workflowId, props.version || undefined); const incomingModel = new WorkflowRunModel(runData); simpleForm.value = props.preferSimpleForm; if (simpleForm.value) { // These only work with PJA - the API doesn't evaluate them at // all outside that context currently. The main workflow form renders Loading @@ -96,9 +98,7 @@ function loadRun() { // input), we have to render the tool form steps and cannot use the // simplified tool form. if (incomingModel.hasOpenToolSteps) { console.log( "cannot render simple workflow form - one or more tools have disconnected runtime inputs" ); console.log("cannot render simple workflow form - one or more tools have disconnected runtime inputs"); simpleForm.value = false; } // Just render the whole form for resource request parameters (kind of Loading @@ -108,15 +108,15 @@ function loadRun() { simpleForm.value = false; } } hasUpgradeMessages.value = incomingModel.hasUpgradeMessages; hasStepVersionChanges.value = incomingModel.hasStepVersionChanges; workflowName.value = incomingModel.name; workflowModel.value = incomingModel; loading.value = false; }) .catch((response) => { workflowError.value = errorMessageAsString(response); }); } catch (e) { workflowError.value = errorMessageAsString(e); } } async function onImport() { Loading @@ -124,8 +124,19 @@ async function onImport() { router.push(`/workflows/edit?id=${response.id}`); } const advancedForm = ref(false); const fromVariant = computed<"simple" | "advanced">(() => { if (advancedForm.value) { return "advanced"; } else if (simpleForm.value) { return "simple"; } else { return "advanced"; } }); function showAdvanced() { simpleForm.value = false; advancedForm.value = true; } onMounted(() => { Loading Loading @@ -185,7 +196,7 @@ defineExpose({ Workflow submission failed: {{ submissionError }} </BAlert> <WorkflowRunFormSimple v-else-if="simpleForm" v-else-if="fromVariant === 'simple'" :model="workflowModel" :target-history="simpleFormTargetHistory" :use-job-cache="simpleFormUseJobCache" Loading Loading
client/src/components/Workflow/Run/WorkflowRun.vue +52 −41 Original line number Diff line number Diff line Loading @@ -77,11 +77,13 @@ function handleSubmissionError(error: string) { submissionError.value = errorMessageAsString(error); } function loadRun() { getRunData(props.workflowId, props.version || undefined) .then((runData) => { async function loadRun() { try { const runData = await getRunData(props.workflowId, props.version || undefined); const incomingModel = new WorkflowRunModel(runData); simpleForm.value = props.preferSimpleForm; if (simpleForm.value) { // These only work with PJA - the API doesn't evaluate them at // all outside that context currently. The main workflow form renders Loading @@ -96,9 +98,7 @@ function loadRun() { // input), we have to render the tool form steps and cannot use the // simplified tool form. if (incomingModel.hasOpenToolSteps) { console.log( "cannot render simple workflow form - one or more tools have disconnected runtime inputs" ); console.log("cannot render simple workflow form - one or more tools have disconnected runtime inputs"); simpleForm.value = false; } // Just render the whole form for resource request parameters (kind of Loading @@ -108,15 +108,15 @@ function loadRun() { simpleForm.value = false; } } hasUpgradeMessages.value = incomingModel.hasUpgradeMessages; hasStepVersionChanges.value = incomingModel.hasStepVersionChanges; workflowName.value = incomingModel.name; workflowModel.value = incomingModel; loading.value = false; }) .catch((response) => { workflowError.value = errorMessageAsString(response); }); } catch (e) { workflowError.value = errorMessageAsString(e); } } async function onImport() { Loading @@ -124,8 +124,19 @@ async function onImport() { router.push(`/workflows/edit?id=${response.id}`); } const advancedForm = ref(false); const fromVariant = computed<"simple" | "advanced">(() => { if (advancedForm.value) { return "advanced"; } else if (simpleForm.value) { return "simple"; } else { return "advanced"; } }); function showAdvanced() { simpleForm.value = false; advancedForm.value = true; } onMounted(() => { Loading Loading @@ -185,7 +196,7 @@ defineExpose({ Workflow submission failed: {{ submissionError }} </BAlert> <WorkflowRunFormSimple v-else-if="simpleForm" v-else-if="fromVariant === 'simple'" :model="workflowModel" :target-history="simpleFormTargetHistory" :use-job-cache="simpleFormUseJobCache" Loading