lml-main
Version:
This is now a mono repository published into many standalone packages.
25 lines • 883 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var Actions = require("../actions");
exports.initialJobDelayState = {};
exports.jobDelayReducer = function (state, action) {
if (state === void 0) { state = exports.initialJobDelayState; }
switch (action.type) {
case Actions.SET_JOB_DELAY: {
return setJobDelay(state, action);
}
case Actions.SET_JOB_DELAY_BATCH: {
return setJobDelayBatch(state, action);
}
default: {
return state;
}
}
};
var setJobDelay = function (state, action) {
return (tslib_1.__assign({}, state, (_a = {}, _a[action.refId] = action.delay, _a)));
var _a;
};
var setJobDelayBatch = function (state, action) { return (tslib_1.__assign({}, state, action.values)); };
//# sourceMappingURL=delay.js.map