mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-01 02:25:45 +08:00
Summary: Adding tests Test Plan: Tests Reviewers: juan, bengotow Reviewed By: bengotow Differential Revision: https://phab.nylas.com/D2892
27 lines
618 B
JavaScript
27 lines
618 B
JavaScript
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
|
|
}
|
|
}
|
|
|
|
if (!NylasEnv.inSpecMode()) {
|
|
NylasEnv.actionBridge.registerGlobalAction({
|
|
scope: "SchedulerActions",
|
|
name: "confirmChoices",
|
|
actionFn: SchedulerActions.confirmChoices,
|
|
});
|
|
}
|
|
|
|
export default SchedulerActions
|