Skip to content

Commit ab18227

Browse files
PaulCombalrcdexta
authored andcommitted
Reversing changes pointed by:
#180 #173
1 parent 613782c commit ab18227

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/components/BoardContainer.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ class BoardContainer extends Component {
118118

119119
render() {
120120
const {id, reducerData, draggable, laneDraggable, laneDragClass, style, onDataChange, onLaneScroll, onCardClick, onLaneClick, onCardDelete, onCardAdd, addLaneTitle, editable, canAddLanes, ...otherProps} = this.props
121+
const {addLaneMode} = this.state
121122
// Stick to whitelisting attributes to segregate board and lane props
122123
const passthroughProps = pick(this.props, [
123124
'onLaneScroll',
@@ -174,6 +175,17 @@ class BoardContainer extends Component {
174175
return draggable && laneDraggable ? <Draggable key={lane.id}>{laneToRender}</Draggable> : <span key={lane.id}>{laneToRender}</span>
175176
})}
176177
</Container>
178+
{canAddLanes && (
179+
<Container orientation="horizontal">
180+
{editable && !addLaneMode ? (
181+
<LaneSection style={{width: 200}}>
182+
<NewLaneButton onClick={this.showEditableLane}>{addLaneTitle}</NewLaneButton>
183+
</LaneSection>
184+
) : (
185+
addLaneMode && this.renderNewLane()
186+
)}
187+
</Container>
188+
)}
177189
</BoardDiv>
178190
)
179191
}

0 commit comments

Comments
 (0)