diff options
Diffstat (limited to 'web/src/actions/configErrors.js')
-rw-r--r-- | web/src/actions/configErrors.js | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/web/src/actions/configErrors.js b/web/src/actions/configErrors.js index e4b17d801..a3baeac4c 100644 --- a/web/src/actions/configErrors.js +++ b/web/src/actions/configErrors.js @@ -18,11 +18,19 @@ export function fetchConfigErrorsAction (tenant) { return (dispatch) => { return fetchConfigErrors(tenant.apiPrefix) .then(response => { - dispatch({type: 'FETCH_CONFIGERRORS_SUCCESS', + dispatch({type: 'CONFIGERRORS_FETCH_SUCCESS', errors: response.data}) }) .catch(error => { - throw (error) + dispatch({type: 'CONFIGERRORS_FETCH_FAIL', + error}) + }) } } + +export function clearConfigErrorsAction () { + return (dispatch) => { + dispatch({type: 'CONFIGERRORS_CLEAR'}) + } +} |