aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/projectActivity/actions.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/projectActivity/actions.js')
-rw-r--r--server/sonar-web/src/main/js/apps/projectActivity/actions.js24
1 files changed, 12 insertions, 12 deletions
diff --git a/server/sonar-web/src/main/js/apps/projectActivity/actions.js b/server/sonar-web/src/main/js/apps/projectActivity/actions.js
index 25cf7760bc4..ed8971d762d 100644
--- a/server/sonar-web/src/main/js/apps/projectActivity/actions.js
+++ b/server/sonar-web/src/main/js/apps/projectActivity/actions.js
@@ -37,8 +37,8 @@ const rejectOnFail = (dispatch: Function) => (error: Object) => {
export const fetchProjectActivity = (project: string, filter: ?string) => (dispatch: Function): void => {
api.getProjectActivity(project, { category: filter }).then(
- ({ analyses, paging }) => dispatch(receiveProjectActivity(project, analyses, paging)),
- onFail(dispatch)
+ ({ analyses, paging }) => dispatch(receiveProjectActivity(project, analyses, paging)),
+ onFail(dispatch)
);
};
@@ -48,23 +48,23 @@ export const fetchMoreProjectActivity = (project: string, filter: ?string) =>
const { pageIndex } = getPaging(projectActivity, project);
api.getProjectActivity(project, { category: filter, pageIndex: pageIndex + 1 }).then(
- ({ analyses, paging }) => dispatch(receiveProjectActivity(project, analyses, paging)),
- onFail(dispatch)
+ ({ analyses, paging }) => dispatch(receiveProjectActivity(project, analyses, paging)),
+ onFail(dispatch)
);
};
export const addCustomEvent = (analysis: string, name: string, category?: string) =>
(dispatch: Function): Promise<*> => {
return api.createEvent(analysis, name, category).then(
- ({ analysis, ...event }) => dispatch(addEvent(analysis, event)),
- rejectOnFail(dispatch)
+ ({ analysis, ...event }) => dispatch(addEvent(analysis, event)),
+ rejectOnFail(dispatch)
);
};
export const deleteEvent = (analysis: string, event: string) => (dispatch: Function): Promise<*> => {
return api.deleteEvent(event).then(
- () => dispatch(deleteEventAction(analysis, event)),
- rejectOnFail(dispatch)
+ () => dispatch(deleteEventAction(analysis, event)),
+ rejectOnFail(dispatch)
);
};
@@ -74,14 +74,14 @@ export const addVersion = (analysis: string, version: string) => (dispatch: Func
export const changeEvent = (event: string, name: string) => (dispatch: Function): Promise<*> => {
return api.changeEvent(event, name).then(
- () => dispatch(changeEventAction(event, { name })),
- rejectOnFail(dispatch)
+ () => dispatch(changeEventAction(event, { name })),
+ rejectOnFail(dispatch)
);
};
export const deleteAnalysis = (project: string, analysis: string) => (dispatch: Function): Promise<*> => {
return api.deleteAnalysis(analysis).then(
- () => dispatch(deleteAnalysisAction(project, analysis)),
- rejectOnFail(dispatch)
+ () => dispatch(deleteAnalysisAction(project, analysis)),
+ rejectOnFail(dispatch)
);
};