mirror of
https://github.com/plankanban/planka.git
synced 2025-07-19 13:19:44 +02:00
Project managers, board members, auto-update after reconnection, refactoring
This commit is contained in:
parent
7956503a46
commit
fe91b5241e
478 changed files with 21226 additions and 19495 deletions
|
@ -1,7 +1,5 @@
|
|||
import ActionTypes from '../constants/ActionTypes';
|
||||
|
||||
/* Actions */
|
||||
|
||||
export const createCommentAction = (action) => ({
|
||||
type: ActionTypes.COMMENT_ACTION_CREATE,
|
||||
payload: {
|
||||
|
@ -9,6 +7,22 @@ export const createCommentAction = (action) => ({
|
|||
},
|
||||
});
|
||||
|
||||
createCommentAction.success = (localId, action) => ({
|
||||
type: ActionTypes.COMMENT_ACTION_CREATE__SUCCESS,
|
||||
payload: {
|
||||
localId,
|
||||
action,
|
||||
},
|
||||
});
|
||||
|
||||
createCommentAction.failure = (localId, error) => ({
|
||||
type: ActionTypes.COMMENT_ACTION_CREATE__FAILURE,
|
||||
payload: {
|
||||
localId,
|
||||
error,
|
||||
},
|
||||
});
|
||||
|
||||
export const updateCommentAction = (id, data) => ({
|
||||
type: ActionTypes.COMMENT_ACTION_UPDATE,
|
||||
payload: {
|
||||
|
@ -17,6 +31,21 @@ export const updateCommentAction = (id, data) => ({
|
|||
},
|
||||
});
|
||||
|
||||
updateCommentAction.success = (action) => ({
|
||||
type: ActionTypes.COMMENT_ACTION_UPDATE__SUCCESS,
|
||||
payload: {
|
||||
action,
|
||||
},
|
||||
});
|
||||
|
||||
updateCommentAction.failure = (id, error) => ({
|
||||
type: ActionTypes.COMMENT_ACTION_UPDATE__FAILURE,
|
||||
payload: {
|
||||
id,
|
||||
error,
|
||||
},
|
||||
});
|
||||
|
||||
export const deleteCommentAction = (id) => ({
|
||||
type: ActionTypes.COMMENT_ACTION_DELETE,
|
||||
payload: {
|
||||
|
@ -24,71 +53,15 @@ export const deleteCommentAction = (id) => ({
|
|||
},
|
||||
});
|
||||
|
||||
/* Events */
|
||||
|
||||
export const createCommentActionRequested = (localId, data) => ({
|
||||
type: ActionTypes.COMMENT_ACTION_CREATE_REQUESTED,
|
||||
payload: {
|
||||
localId,
|
||||
data,
|
||||
},
|
||||
});
|
||||
|
||||
export const createCommentActionSucceeded = (localId, action) => ({
|
||||
type: ActionTypes.COMMENT_ACTION_CREATE_SUCCEEDED,
|
||||
payload: {
|
||||
localId,
|
||||
action,
|
||||
},
|
||||
});
|
||||
|
||||
export const createCommentActionFailed = (localId, error) => ({
|
||||
type: ActionTypes.COMMENT_ACTION_CREATE_FAILED,
|
||||
payload: {
|
||||
localId,
|
||||
error,
|
||||
},
|
||||
});
|
||||
|
||||
export const updateCommentActionRequested = (id, data) => ({
|
||||
type: ActionTypes.COMMENT_ACTION_UPDATE_REQUESTED,
|
||||
payload: {
|
||||
id,
|
||||
data,
|
||||
},
|
||||
});
|
||||
|
||||
export const updateCommentActionSucceeded = (action) => ({
|
||||
type: ActionTypes.COMMENT_ACTION_UPDATE_SUCCEEDED,
|
||||
deleteCommentAction.success = (action) => ({
|
||||
type: ActionTypes.COMMENT_ACTION_DELETE__SUCCESS,
|
||||
payload: {
|
||||
action,
|
||||
},
|
||||
});
|
||||
|
||||
export const updateCommentActionFailed = (id, error) => ({
|
||||
type: ActionTypes.COMMENT_ACTION_UPDATE_FAILED,
|
||||
payload: {
|
||||
id,
|
||||
error,
|
||||
},
|
||||
});
|
||||
|
||||
export const deleteCommentActionRequested = (id) => ({
|
||||
type: ActionTypes.COMMENT_ACTION_DELETE_REQUESTED,
|
||||
payload: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
|
||||
export const deleteCommentActionSucceeded = (action) => ({
|
||||
type: ActionTypes.COMMENT_ACTION_DELETE_SUCCEEDED,
|
||||
payload: {
|
||||
action,
|
||||
},
|
||||
});
|
||||
|
||||
export const deleteCommentActionFailed = (id, error) => ({
|
||||
type: ActionTypes.COMMENT_ACTION_DELETE_FAILED,
|
||||
deleteCommentAction.failure = (id, error) => ({
|
||||
type: ActionTypes.COMMENT_ACTION_DELETE__FAILURE,
|
||||
payload: {
|
||||
id,
|
||||
error,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue