Skip to content

Commit 47e7bc0

Browse files
committed
fix: Add UPDATE_LANES to event bus
#84
1 parent 6026cb2 commit 47e7bc0

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ eventBus.publish({type: 'REMOVE_CARD', laneId: 'PLANNED', cardId: "M1"})
129129
//To move a card from one lane to another. index specifies the position to move the card to in the target lane
130130
eventBus.publish({type: 'MOVE_CARD', fromLaneId: 'PLANNED', toLaneId: 'WIP', cardId: 'Plan3', index: 0})
131131

132+
//To update the lanes
133+
eventBus.publish({type: 'UPDATE_LANES', lanes: newLaneData})
134+
132135
<Board data={data} eventBusHandle={setEventBus}/>
133136
```
134137

src/components/BoardContainer.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ class BoardContainer extends Component {
3030
cardId: event.cardId,
3131
index: event.index
3232
})
33+
case 'UPDATE_LANES':
34+
return actions.updateLanes(event.lanes)
3335
}
3436
}
3537
}

0 commit comments

Comments
 (0)