@@ -114,7 +114,7 @@ class BoardContainer extends Component {
114114 }
115115
116116 render ( ) {
117- const { id, reducerData, draggable, laneDraggable, laneDragClass, style, addLaneTitle, editable, ...otherProps } = this . props
117+ const { id, reducerData, draggable, laneDraggable, laneDragClass, style, addLaneTitle, editable, canAddLanes , ...otherProps } = this . props
118118 const { addLaneMode} = this . state
119119 // Stick to whitelisting attributes to segregate board and lane props
120120 const passthroughProps = pick ( this . props , [
@@ -129,6 +129,7 @@ class BoardContainer extends Component {
129129 'cardDraggable' ,
130130 'collapsibleLanes' ,
131131 'editable' ,
132+ 'canAddLanes' ,
132133 'hideCardDeleteIcon' ,
133134 'customCardLayout' ,
134135 'customLaneHeader' ,
@@ -174,15 +175,18 @@ class BoardContainer extends Component {
174175 ) ;
175176 } ) }
176177 </ Container >
177- < Container
178- orientation = "horizontal"
179- >
180- { editable && ! addLaneMode ? (
181- < LaneSection style = { { width : 200 } } >
182- < NewLaneButton onClick = { this . showEditableLane } > { addLaneTitle } </ NewLaneButton >
183- </ LaneSection >
184- ) : ( addLaneMode && this . renderNewLane ( ) ) }
185- </ Container >
178+ {
179+ canAddLanes &&
180+ < Container
181+ orientation = "horizontal"
182+ >
183+ { editable && ! addLaneMode ? (
184+ < LaneSection style = { { width : 200 } } >
185+ < NewLaneButton onClick = { this . showEditableLane } > { addLaneTitle } </ NewLaneButton >
186+ </ LaneSection >
187+ ) : ( addLaneMode && this . renderNewLane ( ) ) }
188+ </ Container >
189+ }
186190 </ BoardDiv >
187191 ) ;
188192 }
@@ -205,6 +209,7 @@ BoardContainer.propTypes = {
205209 draggable : PropTypes . bool ,
206210 collapsibleLanes : PropTypes . bool ,
207211 editable : PropTypes . bool ,
212+ canAddLanes : PropTypes . bool ,
208213 hideCardDeleteIcon : PropTypes . bool ,
209214 handleDragStart : PropTypes . func ,
210215 handleDragEnd : PropTypes . func ,
@@ -230,6 +235,7 @@ BoardContainer.defaultProps = {
230235 handleLaneDragStart : ( ) => { } ,
231236 handleLaneDragEnd : ( ) => { } ,
232237 editable : false ,
238+ canAddLanes : false ,
233239 hideCardDeleteIcon : false ,
234240 draggable : false ,
235241 collapsibleLanes : false ,
0 commit comments