mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-15 06:06:35 +08:00
23 lines
495 B
Text
23 lines
495 B
Text
|
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
|