lml-main
Version:
This is now a mono repository published into many standalone packages.
18 lines • 945 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var redux_observable_1 = require("redux-observable");
var cosmoui_1 = require("cosmoui");
var actions_1 = require("../actions");
exports.postJobIncidentSuccess = function (action$, store) {
return action$.ofType(actions_1.POST_JOB_INCIDENT.SUCCESS)
.mergeMap(function (action) { return [
cosmoui_1.notificationSuccess('The incident has been successfully saved'),
actions_1.setJobIncident(action.args.jobId, action.result),
]; });
};
exports.postJobIncidentError = function (action$, store) {
return action$.ofType(actions_1.POST_JOB_INCIDENT.ERROR)
.mapTo(cosmoui_1.notificationError('There was a problem saving the job exception. Please refresh'));
};
exports.postJobIncidentEpics = redux_observable_1.combineEpics(exports.postJobIncidentSuccess, exports.postJobIncidentError);
//# sourceMappingURL=post-job-incident.js.map