diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-09-20 23:18:00 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-09-20 23:18:00 +0200 |
commit | 6d89edc4f772b10b61f9747482a155666077f20b (patch) | |
tree | 6863d30c30851718f9181e4e17e96f069f1348f3 /app/assets/javascripts/components/actions | |
parent | 1d2856c2afb6f3e54e15fe34da3c167c29d4f47a (diff) |
Fix #47 by renaming TIMELINE_SET action to TIMELINE_REFRESH_SUCCESS
Diffstat (limited to 'app/assets/javascripts/components/actions')
-rw-r--r-- | app/assets/javascripts/components/actions/timelines.jsx | 11 |
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, |