2016-04-05 06:05:48 +08:00
|
|
|
import {Reflux} from 'nylas-exports'
|
|
|
|
|
|
|
|
const SchedulerActions = Reflux.createActions([
|
|
|
|
'confirmChoices',
|
|
|
|
'changeDuration',
|
2016-04-12 04:16:24 +08:00
|
|
|
'clearProposals',
|
2016-04-05 06:05:48 +08:00
|
|
|
'removeProposedTime',
|
2016-04-12 04:16:24 +08:00
|
|
|
'addToProposedTimeBlock',
|
|
|
|
'startProposedTimeBlock',
|
|
|
|
'endProposedTimeBlock',
|
2016-04-05 06:05:48 +08:00
|
|
|
])
|
|
|
|
|
|
|
|
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
|