aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/account/notifications/actions.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/account/notifications/actions.js')
-rw-r--r--server/sonar-web/src/main/js/apps/account/notifications/actions.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/server/sonar-web/src/main/js/apps/account/notifications/actions.js b/server/sonar-web/src/main/js/apps/account/notifications/actions.js
index 9562cbef45f..053a7aab6c4 100644
--- a/server/sonar-web/src/main/js/apps/account/notifications/actions.js
+++ b/server/sonar-web/src/main/js/apps/account/notifications/actions.js
@@ -36,10 +36,10 @@ export const fetchNotifications = () => (dispatch: Function) => {
dispatch(fetchOrganizations(organizations)).then(() => {
dispatch(receiveNotifications(
- response.notifications,
- response.channels,
- response.globalTypes,
- response.perProjectTypes
+ response.notifications,
+ response.channels,
+ response.globalTypes,
+ response.perProjectTypes
));
});
};
@@ -49,14 +49,14 @@ export const fetchNotifications = () => (dispatch: Function) => {
export const addNotification = (n: Notification) => (dispatch: Function) => (
api.addNotification(n.channel, n.type, n.project).then(
- () => dispatch(addNotificationAction(n)),
- onFail(dispatch)
+ () => dispatch(addNotificationAction(n)),
+ onFail(dispatch)
)
);
export const removeNotification = (n: Notification) => (dispatch: Function) => (
api.removeNotification(n.channel, n.type, n.project).then(
- () => dispatch(removeNotificationAction(n)),
- onFail(dispatch)
+ () => dispatch(removeNotificationAction(n)),
+ onFail(dispatch)
)
);