2016-08-31 16:15:12 +02:00
|
|
|
export const TIMELINE_SET = 'TIMELINE_SET';
|
|
|
|
export const TIMELINE_UPDATE = 'TIMELINE_UPDATE';
|
2016-09-05 01:59:46 +02:00
|
|
|
export const TIMELINE_DELETE = 'TIMELINE_DELETE';
|
2016-08-31 16:15:12 +02:00
|
|
|
|
|
|
|
export function setTimeline(timeline, statuses) {
|
|
|
|
return {
|
|
|
|
type: TIMELINE_SET,
|
|
|
|
timeline: timeline,
|
|
|
|
statuses: statuses
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export function updateTimeline(timeline, status) {
|
|
|
|
return {
|
|
|
|
type: TIMELINE_UPDATE,
|
|
|
|
timeline: timeline,
|
|
|
|
status: status
|
|
|
|
};
|
|
|
|
}
|
2016-09-05 01:59:46 +02:00
|
|
|
|
2016-09-09 20:54:49 +02:00
|
|
|
export function deleteFromTimelines(id) {
|
2016-09-05 01:59:46 +02:00
|
|
|
return {
|
|
|
|
type: TIMELINE_DELETE,
|
|
|
|
id: id
|
|
|
|
};
|
|
|
|
}
|