Display helpful messages to users

Signed-off-by: Luke Morris <lukevmorris@gmail.com>
pull/10616/head
Jared Scheib 2017-12-06 17:56:12 -08:00 committed by Luke Morris
parent cdac1bd870
commit d8851191d1
1 changed files with 7 additions and 0 deletions

View File

@ -30,6 +30,13 @@ const errorsMiddleware = store => next => action => {
store.dispatch(authExpired(auth))
if (
message ===
`This organization is private. To gain access, you must be explicitly added by an administrator.` // eslint-disable-line quotes
) {
store.dispatch(notify(alertType, message))
}
if (organizationWasRemoved) {
store.dispatch(
notify(alertType, 'Your current organization was deleted.')