aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/store/notifications/duck.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/store/notifications/duck.js')
-rw-r--r--server/sonar-web/src/main/js/store/notifications/duck.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/store/notifications/duck.js b/server/sonar-web/src/main/js/store/notifications/duck.js
index b53948850f9..e5e6a8d4520 100644
--- a/server/sonar-web/src/main/js/store/notifications/duck.js
+++ b/server/sonar-web/src/main/js/store/notifications/duck.js
@@ -25,8 +25,9 @@ import uniqWith from 'lodash/uniqWith';
export type Notification = {
channel: string,
type: string,
- project: string | null,
- projectName: string | null
+ project?: string,
+ projectName?: string,
+ organization?: string
};
export type NotificationsState = Array<Notification>;
@@ -147,7 +148,11 @@ export const getGlobal = (state: State): NotificationsState => (
export const getProjects = (state: State): Array<string> => (
uniqBy(
- state.notifications.filter(n => n.project).map(n => ({ key: n.project, name: n.projectName })),
+ state.notifications.filter(n => n.project).map(n => ({
+ key: n.project,
+ name: n.projectName,
+ organization: n.organization
+ })),
project => project.key
)
);