You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
772 B
37 lines
772 B
export const ADD_SOURCE = 'dnd-core/ADD_SOURCE';
|
|
export const ADD_TARGET = 'dnd-core/ADD_TARGET';
|
|
export const REMOVE_SOURCE = 'dnd-core/REMOVE_SOURCE';
|
|
export const REMOVE_TARGET = 'dnd-core/REMOVE_TARGET';
|
|
export function addSource(sourceId) {
|
|
return {
|
|
type: ADD_SOURCE,
|
|
payload: {
|
|
sourceId,
|
|
},
|
|
};
|
|
}
|
|
export function addTarget(targetId) {
|
|
return {
|
|
type: ADD_TARGET,
|
|
payload: {
|
|
targetId,
|
|
},
|
|
};
|
|
}
|
|
export function removeSource(sourceId) {
|
|
return {
|
|
type: REMOVE_SOURCE,
|
|
payload: {
|
|
sourceId,
|
|
},
|
|
};
|
|
}
|
|
export function removeTarget(targetId) {
|
|
return {
|
|
type: REMOVE_TARGET,
|
|
payload: {
|
|
targetId,
|
|
},
|
|
};
|
|
}
|