Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1056 from metasfresh/dev-1045
Browse files Browse the repository at this point in the history
frontend shall switch to offline mode on http 503 error #1045
  • Loading branch information
cadavre authored Jul 19, 2017
2 parents 7545578 + 1b84e8c commit c4edeed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/containers/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ export default class App extends Component {
store.dispatch(setProcessSaved());
logoutSuccess(this.auth);
store.dispatch(push('/login?redirect=true'));
}else if(error.response.status == 503){
store.dispatch(noConnection(true));
}else if(error.response.status != 404){
if(localStorage.isLogged){
const errorMessenger = (code) => {
Expand Down

0 comments on commit c4edeed

Please sign in to comment.