diff --git a/client/src/components/Workflow/Run/WorkflowRun.vue b/client/src/components/Workflow/Run/WorkflowRun.vue index 7322da10127..08f03f9eec7 100644 --- a/client/src/components/Workflow/Run/WorkflowRun.vue +++ b/client/src/components/Workflow/Run/WorkflowRun.vue @@ -50,6 +50,7 @@ const hasUpgradeMessages = ref(false); const hasStepVersionChanges = ref(false); const invocations = ref([]); const simpleForm = ref(false); +const disableSimpleForm = ref(false); const submissionError = ref(""); const workflowError = ref(""); const workflowName = ref(""); @@ -109,6 +110,7 @@ async function loadRun() { if (incomingModel.hasReplacementParametersInToolForm) { console.log("cannot render simple workflow form - has ${} values in tool steps"); simpleForm.value = false; + disableSimpleForm.value = true; } // If there are required parameters in a tool form (a disconnected runtime // input), we have to render the tool form steps and cannot use the @@ -116,12 +118,14 @@ async function loadRun() { if (incomingModel.hasOpenToolSteps) { console.log("cannot render simple workflow form - one or more tools have disconnected runtime inputs"); simpleForm.value = false; + disableSimpleForm.value = true; } // Just render the whole form for resource request parameters (kind of // niche - I'm not sure anyone is using these currently anyway). if (incomingModel.hasWorkflowResourceParameters) { console.log(`Cannot render simple workflow form - workflow resource parameters are configured`); simpleForm.value = false; + disableSimpleForm.value = true; } } @@ -247,6 +251,7 @@ defineExpose({ v-else :model="workflowModel" :can-mutate-current-history="canRunOnHistory" + :disable-simple-form="disableSimpleForm" @submissionSuccess="handleInvocations" @submissionError="handleSubmissionError" @showSimple="advancedForm = false" /> diff --git a/client/src/components/Workflow/Run/WorkflowRunForm.vue b/client/src/components/Workflow/Run/WorkflowRunForm.vue index 261f2eede97..bfca309ac00 100644 --- a/client/src/components/Workflow/Run/WorkflowRunForm.vue +++ b/client/src/components/Workflow/Run/WorkflowRunForm.vue @@ -10,6 +10,7 @@ Workflow: {{ model.name }} (version: {{ model.runData.version + 1 }})