Prepare for collection board type, refactoring, update dependencies

This commit is contained in:
Maksim Eltyshev
2020-08-04 01:32:46 +05:00
parent 402645bc99
commit 30ed77af59
190 changed files with 2144 additions and 1817 deletions
+2 -2
View File
@@ -55,13 +55,13 @@ export function* fetchBoardRequest(id) {
try {
const {
item,
included: { lists, labels, cards, cardMemberships, cardLabels, tasks, attachments },
included: { labels, lists, cards, cardMemberships, cardLabels, tasks, attachments },
} = yield call(request, api.getBoard, id);
const action = fetchBoardSucceeded(
item,
lists,
labels,
lists,
cards,
cardMemberships,
cardLabels,
+3 -3
View File
@@ -17,11 +17,11 @@ import {
} from '../../../actions';
import api from '../../../api';
export function* createCardRequest(listId, localId, data) {
export function* createCardRequest(boardId, localId, data) {
yield put(
createCardRequested(localId, {
...data,
listId,
boardId,
}),
);
@@ -29,7 +29,7 @@ export function* createCardRequest(listId, localId, data) {
const {
item,
included: { cardMemberships, cardLabels, tasks, attachments },
} = yield call(request, api.createCard, listId, data);
} = yield call(request, api.createCard, boardId, data);
const action = createCardSucceeded(
localId,
+1 -1
View File
@@ -4,8 +4,8 @@ export * from './projects';
export * from './project';
export * from './project-membership';
export * from './board';
export * from './list';
export * from './label';
export * from './list';
export * from './card';
export * from './card-membership';
export * from './card-label';
+1 -1
View File
@@ -4,7 +4,7 @@ import { accessTokenSelector } from '../../../selectors';
import { logout } from '../../../actions';
import ErrorCodes from '../../../constants/ErrorCodes';
export default function* (method, ...args) {
export default function* request(method, ...args) {
try {
const accessToken = yield select(accessTokenSelector);