UNPKG

lml-main

Version:

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

20 lines 1.23 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"); var actions_2 = require("../../job-label/actions"); // even though we retrieve the auto allocation global switch as part of job labels // I have moved it into allocations because it deosn't seem to have anything to do with job labels exports.postAutoAllocationGlobalSuccess = function (action$, store) { return action$.ofType(actions_2.FETCH_JOB_LABELS.SUCCESS, actions_1.POST_AUTO_ALLOCATION_GLOBAL.SUCCESS) .map(function (action) { return actions_1.setAutoAllocationGlobal(action.result.autoAllocationGlobal); }); }; exports.postAutoAllocationGlobalError = function (action$, store) { return action$.ofType(actions_1.POST_AUTO_ALLOCATION_GLOBAL.ERROR) .mapTo(cosmoui_1.notificationError('There was a problem setting the global auto allocation switch. Please refresh')); }; exports.postAutoAllocationGlobalEpics = redux_observable_1.combineEpics(exports.postAutoAllocationGlobalSuccess, exports.postAutoAllocationGlobalError); //# sourceMappingURL=post-auto-allocation-global.js.map