diff options
Diffstat (limited to 'app/assets/javascripts/components/actions/notifications.jsx')
-rw-r--r-- | app/assets/javascripts/components/actions/notifications.jsx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/assets/javascripts/components/actions/notifications.jsx b/app/assets/javascripts/components/actions/notifications.jsx index f19a356c2..79457eba6 100644 --- a/app/assets/javascripts/components/actions/notifications.jsx +++ b/app/assets/javascripts/components/actions/notifications.jsx @@ -1,3 +1,4 @@ +export const NOTIFICATION_SHOW = 'NOTIFICATION_SHOW'; export const NOTIFICATION_DISMISS = 'NOTIFICATION_DISMISS'; export const NOTIFICATION_CLEAR = 'NOTIFICATION_CLEAR'; @@ -13,3 +14,11 @@ export function clearNotifications() { type: NOTIFICATION_CLEAR }; }; + +export function showNotification(title, message) { + return { + type: NOTIFICATION_SHOW, + title: title, + message: message + }; +}; |