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 }, {