You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
525 B

  1. export const TIMELINE_SET = 'TIMELINE_SET';
  2. export const TIMELINE_UPDATE = 'TIMELINE_UPDATE';
  3. export const TIMELINE_DELETE = 'TIMELINE_DELETE';
  4. export function setTimeline(timeline, statuses) {
  5. return {
  6. type: TIMELINE_SET,
  7. timeline: timeline,
  8. statuses: statuses
  9. };
  10. }
  11. export function updateTimeline(timeline, status) {
  12. return {
  13. type: TIMELINE_UPDATE,
  14. timeline: timeline,
  15. status: status
  16. };
  17. }
  18. export function deleteFromTimeline(id) {
  19. return {
  20. type: TIMELINE_DELETE,
  21. id: id
  22. };
  23. }