0
0
Fork 0

Adding notifications column

This commit is contained in:
Eugen Rochko 2016-11-20 19:39:18 +01:00
parent da2ef4d676
commit 38dd85daab
30 changed files with 512 additions and 76 deletions

View file

@ -1,4 +1,4 @@
import { showNotification } from '../actions/notifications';
import { showAlert } from '../actions/alerts';
const defaultFailSuffix = 'FAIL';
@ -18,10 +18,10 @@ export default function errorsMiddleware() {
message = data.error;
}
dispatch(showNotification(title, message));
dispatch(showAlert(title, message));
} else {
console.error(action.error);
dispatch(showNotification('Oops!', 'An unexpected error occurred. Inspect the console for more details'));
dispatch(showAlert('Oops!', 'An unexpected error occurred. Inspect the console for more details'));
}
}
}