UNPKG

lml-main

Version:

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

21 lines 1.03 kB
"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.putJobLabelAutoBatchSuccess = function (action$, store) { return action$.ofType(actions_1.PUT_JOB_LABEL_AUTO_BATCH.SUCCESS) .mergeMap(function () { return [ actions_1.fetchJobLabels, cosmoui_1.notificationSuccess('JobLabel batch auto switch success.'), ]; }); }; exports.putJobLabelAutoBatchError = function (action$, store) { return action$.ofType(actions_1.PUT_JOB_LABEL_AUTO_BATCH.ERROR) .mergeMap(function () { return [ actions_1.fetchJobLabels, cosmoui_1.notificationError('There was a problem with the batch auto swtich save. Please try again'), ]; }); }; exports.putJobLabelAutoBatchEpics = redux_observable_1.combineEpics(exports.putJobLabelAutoBatchSuccess, exports.putJobLabelAutoBatchError); //# sourceMappingURL=put-job-label-auto-batch.js.map