Skip to content

Commit

Permalink
PE-207: revert code change; change config visibility instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
baracudda committed Feb 2, 2024
1 parent 32f2844 commit 7961e0f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
17 changes: 3 additions & 14 deletions src/components/flow/node/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
Expand Down
3 changes: 2 additions & 1 deletion src/config/typeConfigs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
{
Expand Down

0 comments on commit 7961e0f

Please sign in to comment.