mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-10 18:23:21 +08:00
a1b5a23273
Summary: Moved events into metadata. Removed a lot of code Test Plan: todo Reviewers: juan, bengotow Reviewed By: bengotow Differential Revision: https://phab.nylas.com/D2866
22 lines
495 B
JavaScript
22 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
|