UNPKG

lml-main

Version:

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

18 lines 978 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.patchCourierLabelSuccess = function (action$, store) { return action$.ofType(actions_1.PATCH_COURIER_LABEL.SUCCESS) .mergeMap(function (action) { return [ actions_1.setCourierLabel(action.result.refId, action.result.label.label), cosmoui_1.notificationSuccess('Courier label was successfully updated'), ]; }); }; exports.patchCourierLabelError = function (action$, store) { return action$.ofType(actions_1.PATCH_COURIER_LABEL.ERROR) .mapTo(cosmoui_1.notificationError('There was a problem updating the courier label. Please try again')); }; exports.patchCourierLabelEpics = redux_observable_1.combineEpics(exports.patchCourierLabelSuccess, exports.patchCourierLabelError); //# sourceMappingURL=patch-courier-label.js.map