diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-10-18 17:09:45 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-10-18 17:09:45 +0200 |
commit | f88b8ce757f62486d5843e1ea0191db1e5c61194 (patch) | |
tree | 79109cf3cd77240152c041641bb77915fcfc553d /app/assets/javascripts/components/actions/notifications.jsx | |
parent | aea151a0ded4f7cc3a16901727931aff78a8b050 (diff) |
Improve how errors are displayed in the UI
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 + }; +}; |