load noexport reasons
This commit is contained in:
parent
43c74153ac
commit
bd00a44b99
@ -1,6 +1,8 @@
|
|||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import {apiError} from 'components/errors/actions'
|
import {apiError} from 'components/errors/actions'
|
||||||
import {loadRejectReasonsSuccess} from 'components/routeservers/actions';
|
import {loadRejectReasonsSuccess,
|
||||||
|
loadNoExportReasonsSuccess}
|
||||||
|
from 'components/routeservers/large-communities/actions';
|
||||||
|
|
||||||
export const LOAD_CONFIG_SUCCESS = "@birdseye/LOAD_CONFIG_SUCCESS";
|
export const LOAD_CONFIG_SUCCESS = "@birdseye/LOAD_CONFIG_SUCCESS";
|
||||||
|
|
||||||
@ -20,6 +22,12 @@ export function loadConfig() {
|
|||||||
data.rejection.reject_id,
|
data.rejection.reject_id,
|
||||||
data.reject_reasons)
|
data.reject_reasons)
|
||||||
);
|
);
|
||||||
|
dispatch(
|
||||||
|
loadNoExportReasonsSuccess(
|
||||||
|
data.config.noexport.asn,
|
||||||
|
data.config.noexport.noexport_id,
|
||||||
|
data.config.noexport_reasons)
|
||||||
|
);
|
||||||
dispatch(loadConfigSuccess(data.routes_columns));
|
dispatch(loadConfigSuccess(data.routes_columns));
|
||||||
})
|
})
|
||||||
.catch(error => dispatch(apiError(error)));
|
.catch(error => dispatch(apiError(error)));
|
||||||
|
@ -28,9 +28,6 @@ export const LOAD_ROUTESERVER_ROUTES_FILTERED_SUCCESS = '@birdseye/LOAD_ROUTESER
|
|||||||
export const SET_PROTOCOLS_FILTER_VALUE = '@birdseye/SET_PROTOCOLS_FILTER_VALUE';
|
export const SET_PROTOCOLS_FILTER_VALUE = '@birdseye/SET_PROTOCOLS_FILTER_VALUE';
|
||||||
export const SET_ROUTES_FILTER_VALUE = '@birdseye/SET_ROUTES_FILTER_VALUE';
|
export const SET_ROUTES_FILTER_VALUE = '@birdseye/SET_ROUTES_FILTER_VALUE';
|
||||||
|
|
||||||
export const LOAD_REJECT_REASONS_REQUEST = '@birdseye/LOAD_REJECT_REASONS_REQUEST';
|
|
||||||
export const LOAD_REJECT_REASONS_SUCCESS = '@birdseye/LOAD_REJECT_REASONS_SUCCESS';
|
|
||||||
|
|
||||||
|
|
||||||
// Action Creators
|
// Action Creators
|
||||||
export function loadRouteserversRequest() {
|
export function loadRouteserversRequest() {
|
||||||
@ -232,9 +229,3 @@ export function setRoutesFilterValue(value) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export function loadRejectReasonsSuccess(asn, reject_id, reject_reasons) {
|
|
||||||
return {
|
|
||||||
type: LOAD_REJECT_REASONS_SUCCESS,
|
|
||||||
payload: {asn, reject_id, reject_reasons}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user