Display error messages

This commit is contained in:
Scott E. Graves
2019-06-07 16:48:40 -05:00
parent 7f3e90773e
commit 6499ff4f79

View File

@@ -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));
}
});
};