Fixing broadcast vs info vs default notifications

This commit is contained in:
James Barnsley
2018-07-23 21:14:43 +12:00
parent 0ca1aa76ad
commit a43d5036d2
9 changed files with 34 additions and 24 deletions

View File

@ -72,6 +72,7 @@ const CoreMiddleware = (function(){
);
// Log with Raven Sentry
/*
if (store.getState().ui.allow_reporting){
Raven.captureException(
new Error(message),
@ -80,6 +81,7 @@ const CoreMiddleware = (function(){
}
);
}
*/
// Log with Analytics
if (store.getState().ui.allow_reporting){

View File

@ -160,7 +160,7 @@ const UIMiddleware = (function(){
key: (broadcast.key ? broadcast.key : null),
title: (broadcast.title ? broadcast.title : null),
content: broadcast.message,
type: 'info',
type: 'broadcast',
sticky: true
}
store.dispatch(uiActions.createNotification(data));