UNPKG

lml-main

Version:

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

15 lines 670 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const selectors_1 = require("../../jobs/selectors"); const actions_1 = require("../../allocation/actions"); const cosmoui_1 = require("cosmoui"); exports.deallocateActiveJob = (action$, store) => action$.ofType(actions_1.DEALLOCATE_ACTIVE_JOB) .map(action => { const state = store.getState(); const jobRefId = selectors_1.getActiveJobId(state); if (!jobRefId) { return cosmoui_1.notificationError('Please select a job before attempting to deallocate'); } return actions_1.allocate('DEALLOCATION', jobRefId); }); //# sourceMappingURL=deallocate-active-job.js.map