Mailspring/internal_packages/N1-Scheduler/lib/scheduler-actions.es6
Evan Morikawa 15ff969e73 feat(calendar): add week view for quick scheduler
Summary: New Calendar

Test Plan: TODO

Reviewers: drew, juan, bengotow

Reviewed By: bengotow

Subscribers: jackie

Differential Revision: https://phab.nylas.com/D2767
2016-04-04 15:05:48 -07:00

23 lines
495 B
JavaScript

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