mirror of
https://github.com/plankanban/planka.git
synced 2025-08-02 12:05:24 +02:00
Prepare for collection board type, refactoring, update dependencies
This commit is contained in:
parent
402645bc99
commit
30ed77af59
190 changed files with 2144 additions and 1817 deletions
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue