about summary refs log tree commit diff
path: root/app/assets/javascripts/components/actions/timelines.jsx
blob: 1fabe5d2ceb0d796a877a053036cf20a24a086d0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
export const TIMELINE_SET    = 'TIMELINE_SET';
export const TIMELINE_UPDATE = 'TIMELINE_UPDATE';
export const TIMELINE_DELETE = 'TIMELINE_DELETE';

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
  };
}

export function deleteFromTimeline(id) {
  return {
    type: TIMELINE_DELETE,
    id: id
  };
}