Prepare for collection board type, refactoring, update dependencies

This commit is contained in:
Maksim Eltyshev
2020-08-04 01:32:46 +05:00
parent 2d92ade8dc
commit c6ee7d54bb
190 changed files with 2144 additions and 1817 deletions

View File

@@ -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,
});
}

View File

@@ -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';