Display error messages
This commit is contained in:
@@ -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));
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user