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