mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-12 04:25:31 +08:00
f46502ad3e
Summary: - Also refactors the code a bit for testability and maintainability - Fixes #1515 Test Plan: - Unit tests Reviewers: evan, drew, bengotow Reviewed By: bengotow Differential Revision: https://phab.nylas.com/D2651
24 lines
656 B
JavaScript
24 lines
656 B
JavaScript
/** @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() {
|
|
this.store = new SendLaterStore()
|
|
|
|
this.store.activate()
|
|
ComponentRegistry.register(SendLaterPopover, {role: 'Composer:ActionButton'})
|
|
ComponentRegistry.register(SendLaterStatus, {role: 'DraftList:DraftStatus'})
|
|
}
|
|
|
|
export function deactivate() {
|
|
ComponentRegistry.unregister(SendLaterPopover)
|
|
ComponentRegistry.unregister(SendLaterStatus)
|
|
this.store.deactivate()
|
|
}
|
|
|
|
export function serialize() {
|
|
|
|
}
|
|
|