about summary refs log tree commit diff
path: root/app/assets/javascripts/components/actions/statuses.jsx
blob: 21821b8ba1fe89a518048fc1af9bb20c8728e6da (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
export const SET_TIMELINE = 'SET_TIMELINE';
export const ADD_STATUS   = 'ADD_STATUS';

export function setTimeline(timeline, statuses) {
  return {
    type: SET_TIMELINE,
    timeline: timeline,
    statuses: statuses
  };
}

export function addStatus(timeline, status) {
  return {
    type: ADD_STATUS,
    timeline: timeline,
    status: status
  };
}