diff --git a/src/redux/actions/release_version_actions.js b/src/redux/actions/release_version_actions.js index cb53568..80b44d9 100644 --- a/src/redux/actions/release_version_actions.js +++ b/src/redux/actions/release_version_actions.js @@ -1,7 +1,8 @@ import axios from 'axios'; import * as Constants from '../../constants'; import {createAction} from 'redux-starter-kit'; -import {setApplicationReady} from '../actions/common_actions'; +import {setApplicationReady} from './common_actions'; +import {notifyError} from './error_actions'; export const CLEAR_UI_UPGRADE = 'relver/clearUIUpgrade'; export const clearUIUpgrade = () => { @@ -29,9 +30,9 @@ export const detectUIUpgrade = () => { } else { dispatch(clearUIUpgrade()); } - }).catch(() => { + }).catch(error => { dispatch(clearUIUpgrade()); - //TODO Display error + dispatch(notifyError(error)); }); }; }; @@ -82,8 +83,7 @@ export const loadReleases = () => { dispatchActions(locationsLookup, versionLookup); } else { - //this.setErrorState(error, null, true); - //TODO Display error + dispatch(notifyError(error, true)); } }); };