From c5aa2f089ba911352d4c690d466dc1463c57fb1a Mon Sep 17 00:00:00 2001 From: mloppie Date: Wed, 6 Nov 2024 15:01:36 -0500 Subject: [PATCH 1/2] fixes permanently disabled "save for reuse" button --- packages/client/hmi-client/src/services/workflow.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/hmi-client/src/services/workflow.ts b/packages/client/hmi-client/src/services/workflow.ts index 3387fd1428..e6e6e0ca78 100644 --- a/packages/client/hmi-client/src/services/workflow.ts +++ b/packages/client/hmi-client/src/services/workflow.ts @@ -244,7 +244,7 @@ export class WorkflowWrapper { state: {} })), - status: OperatorStatus.INVALID, + status: OperatorStatus.DEFAULT, width: nodeSize.width, height: nodeSize.height }; From 3d0977c956c5cd7afe394a3de937be9fee4a1b8a Mon Sep 17 00:00:00 2001 From: mloppie Date: Wed, 6 Nov 2024 16:19:49 -0500 Subject: [PATCH 2/2] pr feedback --- .../ops/dataset-transformer/tera-dataset-transformer.vue | 5 ++++- packages/client/hmi-client/src/services/workflow.ts | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/client/hmi-client/src/components/workflow/ops/dataset-transformer/tera-dataset-transformer.vue b/packages/client/hmi-client/src/components/workflow/ops/dataset-transformer/tera-dataset-transformer.vue index 5965ea4c5d..56a6113be0 100644 --- a/packages/client/hmi-client/src/components/workflow/ops/dataset-transformer/tera-dataset-transformer.vue +++ b/packages/client/hmi-client/src/components/workflow/ops/dataset-transformer/tera-dataset-transformer.vue @@ -72,7 +72,10 @@ const assets = computed(() => })) ); const disableSaveForReuse = computed( - () => !kernelState.value || props.node.status === OperatorStatus.INVALID || props.node.status === OperatorStatus.ERROR + () => + !kernelState.value || + (props.node.status === OperatorStatus.INVALID && props.node.state.selectedOutputs.length) || + props.node.status === OperatorStatus.ERROR ); const kernelState = ref(null); diff --git a/packages/client/hmi-client/src/services/workflow.ts b/packages/client/hmi-client/src/services/workflow.ts index e6e6e0ca78..3387fd1428 100644 --- a/packages/client/hmi-client/src/services/workflow.ts +++ b/packages/client/hmi-client/src/services/workflow.ts @@ -244,7 +244,7 @@ export class WorkflowWrapper { state: {} })), - status: OperatorStatus.DEFAULT, + status: OperatorStatus.INVALID, width: nodeSize.width, height: nodeSize.height };