- LaneDrag / DragEnd, fixed to support Virtual Lists.
Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
@@ -19,7 +19,7 @@ import ProductionBoardCard from "../production-board-kanban-card/production-boar
|
||||
import ProductionListDetailComponent from "../production-list-detail/production-list-detail.component";
|
||||
import CardColorLegend from "../production-board-kanban-card/production-board-kanban-card-color-legend.component";
|
||||
import "./production-board-kanban.styles.scss";
|
||||
import { createFakeBoardData, createBoardData } from "./production-board-kanban.utils.js";
|
||||
import { createBoardData } from "./production-board-kanban.utils.js";
|
||||
import ProductionBoardKanbanSettings from "./production-board-kanban.settings.component.jsx";
|
||||
|
||||
const mapStateToProps = createStructuredSelector({
|
||||
@@ -69,21 +69,11 @@ export function ProductionBoardKanbanComponent({
|
||||
filter
|
||||
);
|
||||
|
||||
let idx = 0;
|
||||
|
||||
// Build Board Lanes Data
|
||||
boardData.lanes = boardData.lanes.map((lane, laneIndex) => {
|
||||
const cardsWithIndex = lane.cards.map((card, cardIndex) => {
|
||||
const cardWithIndex = { ...card, idx, lane: lane.id, cardIndex, laneIndex };
|
||||
idx++;
|
||||
return cardWithIndex;
|
||||
});
|
||||
|
||||
boardData.lanes = boardData.lanes.map((lane) => {
|
||||
return {
|
||||
...lane,
|
||||
cards: cardsWithIndex,
|
||||
title: `${lane.title} (${lane.cards.length})`,
|
||||
laneIndex
|
||||
title: `${lane.title} (${lane.cards.length})`
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user