From 7961e0fcc9af55d767b471e7c6921502f3a2cb3f Mon Sep 17 00:00:00 2001 From: Ryan Fischbach Date: Thu, 1 Feb 2024 19:54:23 -0800 Subject: [PATCH] PE-207: revert code change; change config visibility instead. --- src/components/flow/node/helpers.ts | 17 +++-------------- src/config/typeConfigs.ts | 3 ++- 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/src/components/flow/node/helpers.ts b/src/components/flow/node/helpers.ts index f9fc4224..b465fc36 100644 --- a/src/components/flow/node/helpers.ts +++ b/src/components/flow/node/helpers.ts @@ -59,24 +59,13 @@ export const getResultName = (node: FlowNode) => { } }; -// export const getVisibleActions = (renderNode: RenderNode): Action[] => { -// // subflow nodes hide their set run results -// if (getType(renderNode) === Types.split_by_subflow) { -// return renderNode.node.actions.filter((action: Action) => action.type !== Types.set_run_result); -// } -// -// return renderNode.node.actions; -// }; -//PE-207: hide ticket feature export const getVisibleActions = (renderNode: RenderNode): Action[] => { - let actionList = renderNode.node.actions.filter( - (action: Action) => action.type !== Types.open_ticket - ); // subflow nodes hide their set run results if (getType(renderNode) === Types.split_by_subflow) { - actionList = actionList.filter((action: Action) => action.type !== Types.set_run_result); + return renderNode.node.actions.filter((action: Action) => action.type !== Types.set_run_result); } - return actionList; + + return renderNode.node.actions; }; export const filterIssuesForAction = ( diff --git a/src/config/typeConfigs.ts b/src/config/typeConfigs.ts index d9571b08..8e48db31 100644 --- a/src/config/typeConfigs.ts +++ b/src/config/typeConfigs.ts @@ -380,7 +380,8 @@ export const typeConfigList: Type[] = [ localizeableKeys: ['exits'], component: OpenTicketComp, aliases: [Types.split_by_ticket], - visibility: VISIBILITY_ONLINE, + //visibility: VISIBILITY_ONLINE, + visibility: VISIBILITY_HIDDEN, filter: FeatureFilter.HAS_TICKETER }, {