lml-main
Version:
This is now a mono repository published into many standalone packages.
18 lines • 855 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var redux_observable_1 = require("redux-observable");
var actions_1 = require("../actions");
var cosmoui_1 = require("cosmoui");
exports.fetchJobFlowSuccess = function (action$, store) {
return action$.ofType(actions_1.FETCH_JOB_FLOW.SUCCESS)
.map(function (action) {
var result = action.result;
return actions_1.setJobFlow(result.refId, result.jobFlow);
});
};
exports.fetchJobFlowError = function (action$, store) {
return action$.ofType(actions_1.FETCH_JOB_FLOW.ERROR)
.mapTo(cosmoui_1.notificationError('There was a problem fetching the job flow. Please try again'));
};
exports.fetchJobFlowEpics = redux_observable_1.combineEpics(exports.fetchJobFlowSuccess, exports.fetchJobFlowError);
//# sourceMappingURL=fetch-job-flow.js.map