about summary refs log tree commit diff
path: root/app/assets/javascripts/components/actions/notifications.jsx
blob: 79457eba68ce3280e438755f3fef8f5c1159e4cf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
export const NOTIFICATION_SHOW    = 'NOTIFICATION_SHOW';
export const NOTIFICATION_DISMISS = 'NOTIFICATION_DISMISS';
export const NOTIFICATION_CLEAR   = 'NOTIFICATION_CLEAR';

export function dismissNotification(notification) {
  return {
    type: NOTIFICATION_DISMISS,
    notification: notification
  };
};

export function clearNotifications() {
  return {
    type: NOTIFICATION_CLEAR
  };
};

export function showNotification(title, message) {
  return {
    type: NOTIFICATION_SHOW,
    title: title,
    message: message
  };
};