2016-09-01 00:15:12 +10:00
|
|
|
export const TIMELINE_SET = 'TIMELINE_SET';
|
|
|
|
export const TIMELINE_UPDATE = 'TIMELINE_UPDATE';
|
2016-09-05 09:59:46 +10:00
|
|
|
export const TIMELINE_DELETE = 'TIMELINE_DELETE';
|
2016-09-01 00:15:12 +10: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 09:59:46 +10:00
|
|
|
|
2016-09-10 04:54:49 +10:00
|
|
|
export function deleteFromTimelines(id) {
|
2016-09-05 09:59:46 +10:00
|
|
|
return {
|
|
|
|
type: TIMELINE_DELETE,
|
|
|
|
id: id
|
|
|
|
};
|
|
|
|
}
|