UNPKG

lml-main

Version:

This is now a mono repository published into many standalone packages.

18 lines 846 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var redux_observable_1 = require("redux-observable"); var cosmoui_1 = require("cosmoui"); var actions_1 = require("../actions"); exports.putJobSuccess = function (action$, store) { return action$.ofType(actions_1.PUT_JOB.SUCCESS) .mergeMap(function (action) { return [ cosmoui_1.notificationSuccess('The job has been successfully updated'), actions_1.setJobById(action.result), ]; }); }; exports.putJobError = function (action$, store) { return action$.ofType(actions_1.PUT_JOB.ERROR) .mapTo(cosmoui_1.notificationError('There was a problem updating the job. Please refresh the page.')); }; exports.putJobEpics = redux_observable_1.combineEpics(exports.putJobSuccess, exports.putJobError); //# sourceMappingURL=put-job.js.map