You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file renders the 'ActionContainer'. The action container is the leftmost column in the application. It includes the button that shrinks and expands the action container, a dropdown to select the active site, a clear button, the current selected Route, and a list of selectable snapshots with timestamps.
17
18
*/
18
19
20
+
19
21
// resetSlider locates the rc-slider elements on the document and resets it's style attributes
@@ -59,6 +61,7 @@ function ActionContainer(props: ActionContainerProps): JSX.Element {
59
61
children?: [];
60
62
}
61
63
*/
64
+
62
65
63
66
constdisplayArray=(obj: Obj): void=>{
64
67
if(
@@ -87,6 +90,7 @@ function ActionContainer(props: ActionContainerProps): JSX.Element {
87
90
if(obj.children){
88
91
// if argument has a 'children' array, we iterate through it and run 'displayArray' on each element
89
92
obj.children.forEach((element): void=>{
93
+
//recursive call
90
94
displayArray(element);
91
95
});
92
96
}
@@ -134,6 +138,7 @@ function ActionContainer(props: ActionContainerProps): JSX.Element {
134
138
constselected=index===viewIndex;// boolean on whether the current index is the same as the viewIndex
135
139
constlast=viewIndex===-1&&index===hierarchyArr.length-1;// boolean on whether the view index is less than 0 and if the index is the same as the last snapshot's index value in hierarchyArr
136
140
constisCurrIndex=index===currLocation.index;
141
+
137
142
return(
138
143
<Action
139
144
key={`action${index}`}
@@ -247,12 +252,28 @@ function ActionContainer(props: ActionContainerProps): JSX.Element {
0 commit comments