Prepare for collection board type, refactoring, update dependencies
This commit is contained in:
@@ -11,6 +11,7 @@ export function* createCardService(listId, data) {
|
||||
|
||||
const nextData = {
|
||||
...data,
|
||||
listId,
|
||||
position: yield select(nextCardPositionSelector, listId),
|
||||
};
|
||||
|
||||
@@ -19,13 +20,12 @@ export function* createCardService(listId, data) {
|
||||
yield put(
|
||||
createCard({
|
||||
...nextData,
|
||||
listId,
|
||||
boardId,
|
||||
id: localId,
|
||||
}),
|
||||
);
|
||||
|
||||
yield call(createCardRequest, listId, localId, nextData);
|
||||
yield call(createCardRequest, boardId, localId, nextData);
|
||||
}
|
||||
|
||||
export function* updateCardService(id, data) {
|
||||
@@ -65,8 +65,8 @@ export function* transferCardService(id, boardId, listId, index) {
|
||||
yield put(deleteCard(id));
|
||||
|
||||
yield call(updateCardRequest, id, {
|
||||
listId,
|
||||
boardId,
|
||||
listId,
|
||||
position,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -7,8 +7,8 @@ export * from './user';
|
||||
export * from './project';
|
||||
export * from './project-membership';
|
||||
export * from './board';
|
||||
export * from './list';
|
||||
export * from './label';
|
||||
export * from './list';
|
||||
export * from './card';
|
||||
export * from './task';
|
||||
export * from './attachment';
|
||||
|
||||
Reference in New Issue
Block a user