about summary refs log tree commit diff
path: root/app/assets/javascripts/components/actions/timelines.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/components/actions/timelines.jsx')
-rw-r--r--app/assets/javascripts/components/actions/timelines.jsx11
1 files changed, 2 insertions, 9 deletions
diff --git a/app/assets/javascripts/components/actions/timelines.jsx b/app/assets/javascripts/components/actions/timelines.jsx
index b0c413630..d6de32ea1 100644
--- a/app/assets/javascripts/components/actions/timelines.jsx
+++ b/app/assets/javascripts/components/actions/timelines.jsx
@@ -1,6 +1,5 @@
 import api from '../api'
 
-export const TIMELINE_SET     = 'TIMELINE_SET';
 export const TIMELINE_UPDATE  = 'TIMELINE_UPDATE';
 export const TIMELINE_DELETE  = 'TIMELINE_DELETE';
 
@@ -12,9 +11,9 @@ export const TIMELINE_EXPAND_REQUEST = 'TIMELINE_EXPAND_REQUEST';
 export const TIMELINE_EXPAND_SUCCESS = 'TIMELINE_EXPAND_SUCCESS';
 export const TIMELINE_EXPAND_FAIL    = 'TIMELINE_EXPAND_FAIL';
 
-export function setTimeline(timeline, statuses) {
+export function refreshTimelineSuccess(timeline, statuses) {
   return {
-    type: TIMELINE_SET,
+    type: TIMELINE_REFRESH_SUCCESS,
     timeline: timeline,
     statuses: statuses
   };
@@ -54,12 +53,6 @@ export function refreshTimeline(timeline) {
   };
 };
 
-export function refreshTimelineSuccess(timeline, statuses) {
-  return function (dispatch) {
-    dispatch(setTimeline(timeline, statuses));
-  };
-};
-
 export function refreshTimelineFail(timeline, error) {
   return {
     type: TIMELINE_REFRESH_FAIL,