Mailspring/internal_packages/composer-scheduler/lib/scheduler-actions.es6

26 lines
576 B
Text
Raw Normal View History

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
}
}
NylasEnv.actionBridge.registerGlobalAction({
scope: "SchedulerActions",
name: "confirmChoices",
actionFn: SchedulerActions.confirmChoices,
});
export default SchedulerActions