Skip to content

Commit

Permalink
Disable CategoryColumn drag and drop handlers when not in idea genera…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
vanderhoop committed Feb 11, 2019
1 parent 75e949f commit 570ac29
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/static/js/components/category_column.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,17 @@ import IdeaDropTarget from "./idea_drop_target"
import * as AppPropTypes from "../prop_types"
import styles from "./css_modules/category_column.css"
import { actions as actionCreators } from "../redux"
import STAGES from "../configs/stages"

export const CategoryColumn = props => {
const { category, ideas, actions } = props
const { category, ideas, actions, stage } = props
const iconHeight = 45
const wrapperClassName = classNames(category, styles.index, "column")

return (
<IdeaDropTarget
wrapperClassName={wrapperClassName}
dragAndDropHandlersActive={stage === STAGES.IDEA_GENERATION}
onDropOfIdea={idea => {
actions.submitIdeaEditAsync({ ...idea, category })
}}
Expand Down

0 comments on commit 570ac29

Please sign in to comment.