(startMark: string)
| 27 | * This method allows to add new steps by passing the start mark |
| 28 | */ |
| 29 | export const addActiveSteps = (startMark: string) => { |
| 30 | const newSteps = steps.startMarkToStepsMap[startMark] ?? []; |
| 31 | // adding the new steps to the active map |
| 32 | Object.keys(newSteps).forEach(step => { |
| 33 | if (steps.active[step]) { |
| 34 | return; |
| 35 | } else { |
| 36 | steps.active[step] = true; |
| 37 | } |
| 38 | }); |
| 39 | }; |
| 40 | |
| 41 | export const resetNavigationSteps = () => { |
| 42 | steps.navigationSteps = {}; |