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

23 lines
495 B
Plaintext
Raw Normal View History

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