diff --git a/client/src/components/Workflow/Editor/Forms/FormDefault.vue b/client/src/components/Workflow/Editor/Forms/FormDefault.vue index 205f9687206..98a202d35c1 100644 --- a/client/src/components/Workflow/Editor/Forms/FormDefault.vue +++ b/client/src/components/Workflow/Editor/Forms/FormDefault.vue @@ -46,7 +46,11 @@ + :datatypes="datatypes" + :node-inputs="stepInputs" + :post-job-actions="postJobActions" + @onChange="onChange" + @onChangePostJobActions="onChangePostJobActions" /> { @@ -132,6 +138,9 @@ function onEditSubworkflow() { function onUpgradeSubworkflow() { emit("onAttemptRefactor", [{ action_type: "upgrade_subworkflow", step: { order_index: stepId.value } }]); } +function onChangePostJobActions(postJobActions: unknown) { + emit("onChangePostJobActions", stepId.value, postJobActions); +} // keeps the component from emitting the onCreate change event const initialChange = ref(true); diff --git a/client/src/components/Workflow/Editor/Forms/FormPickValue.test.ts b/client/src/components/Workflow/Editor/Forms/FormPickValue.test.ts index e1a6ae747b4..0b9eaa94e43 100644 --- a/client/src/components/Workflow/Editor/Forms/FormPickValue.test.ts +++ b/client/src/components/Workflow/Editor/Forms/FormPickValue.test.ts @@ -35,7 +35,7 @@ function makeStep(overrides: Partial = {}): Step { } function mountPickValue(step?: Step): Wrapper { - return shallowMount(FormPickValue, { + return shallowMount(FormPickValue as any, { propsData: { step: step ?? makeStep(), }, diff --git a/client/src/components/Workflow/Editor/Forms/FormPickValue.vue b/client/src/components/Workflow/Editor/Forms/FormPickValue.vue index de379589288..f97fa4b40f3 100644 --- a/client/src/components/Workflow/Editor/Forms/FormPickValue.vue +++ b/client/src/components/Workflow/Editor/Forms/FormPickValue.vue @@ -1,20 +1,33 @@