lml-main
Version:
This is now a mono repository published into many standalone packages.
18 lines • 956 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.deleteJobIncidentSuccess = function (action$, store) {
return action$.ofType(actions_1.DELETE_JOB_INCIDENT.SUCCESS)
.mergeMap(function (action) { return [
actions_1.fetchJobById(action.args.jobId, 'incidents'),
cosmoui_1.notificationSuccess('The incident has been successfully deleted'),
]; });
};
exports.deleteJobIncidentError = function (action$, store) {
return action$.ofType(actions_1.DELETE_JOB_INCIDENT.ERROR)
.mapTo(cosmoui_1.notificationError('There was a problem deleting the incident. Please refresh'));
};
exports.deleteJobIncidentEpics = redux_observable_1.combineEpics(exports.deleteJobIncidentSuccess, exports.deleteJobIncidentError);
//# sourceMappingURL=delete-job-incident.js.map