Mailspring/internal_packages/composer-scheduler/lib/scheduler-actions.es6
Evan Morikawa 7e3e3a6015 tests(calendar): adding calendar and scheduler tests
Summary: Adding tests

Test Plan: Tests

Reviewers: juan, bengotow

Reviewed By: bengotow

Differential Revision: https://phab.nylas.com/D2892
2016-04-19 11:54:15 -07:00

27 lines
618 B
JavaScript

import {Reflux} from 'nylas-exports'
const SchedulerActions = Reflux.createActions([
'confirmChoices',
'changeDuration',
'clearProposals',
'removeProposedTime',
'addToProposedTimeBlock',
'startProposedTimeBlock',
'endProposedTimeBlock',
])
for (const key in SchedulerActions) {
if ({}.hasOwnProperty.call(SchedulerActions, key)) {
SchedulerActions[key].sync = true
}
}
if (!NylasEnv.inSpecMode()) {
NylasEnv.actionBridge.registerGlobalAction({
scope: "SchedulerActions",
name: "confirmChoices",
actionFn: SchedulerActions.confirmChoices,
});
}
export default SchedulerActions