2016-02-19 02:00:11 +08:00
|
|
|
/** @babel */
|
|
|
|
import {ComponentRegistry} from 'nylas-exports'
|
|
|
|
import SendLaterPopover from './send-later-popover'
|
|
|
|
import SendLaterStore from './send-later-store'
|
|
|
|
import SendLaterStatus from './send-later-status'
|
|
|
|
|
|
|
|
export function activate() {
|
2016-03-04 04:37:20 +08:00
|
|
|
this.store = new SendLaterStore()
|
|
|
|
|
|
|
|
this.store.activate()
|
2016-02-19 02:00:11 +08:00
|
|
|
ComponentRegistry.register(SendLaterPopover, {role: 'Composer:ActionButton'})
|
|
|
|
ComponentRegistry.register(SendLaterStatus, {role: 'DraftList:DraftStatus'})
|
|
|
|
}
|
|
|
|
|
|
|
|
export function deactivate() {
|
|
|
|
ComponentRegistry.unregister(SendLaterPopover)
|
|
|
|
ComponentRegistry.unregister(SendLaterStatus)
|
2016-03-04 04:37:20 +08:00
|
|
|
this.store.deactivate()
|
2016-02-19 02:00:11 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
export function serialize() {
|
|
|
|
|
|
|
|
}
|
|
|
|
|