Skip to content

Commit 5c69e86

Browse files
authored
Merge pull request #414 from harshaktg/master
Required laneId during on AddCardLink
2 parents e5f32bf + ce56e0a commit 5c69e86

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/AddCardLink.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import React from 'react'
22
import {AddCardLink} from 'rt/styles/Base'
33

4-
export default ({onClick, t}) => <AddCardLink onClick={onClick}>{t('Click to add card')}</AddCardLink>
4+
export default ({onClick, t, laneId}) => <AddCardLink onClick={onClick}>{t('Click to add card')}</AddCardLink>

src/controllers/Lane.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ class Lane extends Component {
206206
getChildPayload={index => this.props.getCardDetails(id, index)}>
207207
{cardList}
208208
</Container>
209-
{editable && !addCardMode && <components.AddCardLink onClick={this.showEditableCard} t={t} />}
209+
{editable && !addCardMode && <components.AddCardLink onClick={this.showEditableCard} t={t} laneId={id} />}
210210
{addCardMode && (
211211
<components.NewCardForm onCancel={this.hideEditableCard} t={t} laneId={id} onAdd={this.addNewCard} />
212212
)}
@@ -225,7 +225,7 @@ class Lane extends Component {
225225
this.props.onLaneUpdate(this.props.id, {title: value})
226226
}
227227

228-
renderHeader = (pickedProps) => {
228+
renderHeader = pickedProps => {
229229
const {components} = this.props
230230
return (
231231
<components.LaneHeader

0 commit comments

Comments
 (0)