2016-04-23 08:26:46 +08:00
|
|
|
import {WorkspaceStore, ComponentRegistry} from 'nylas-exports'
|
2016-03-18 00:50:30 +08:00
|
|
|
import DraftList from './draft-list'
|
|
|
|
import DraftListToolbar from './draft-list-toolbar'
|
|
|
|
import DraftListSendStatus from './draft-list-send-status'
|
|
|
|
import {DraftDeleteButton} from "./draft-toolbar-buttons"
|
|
|
|
|
|
|
|
|
|
|
|
export function activate() {
|
|
|
|
WorkspaceStore.defineSheet(
|
|
|
|
'Drafts',
|
|
|
|
{root: true},
|
|
|
|
{list: ['RootSidebar', 'DraftList']}
|
|
|
|
)
|
|
|
|
|
|
|
|
ComponentRegistry.register(DraftList, {location: WorkspaceStore.Location.DraftList})
|
|
|
|
ComponentRegistry.register(DraftListToolbar, {location: WorkspaceStore.Location.DraftList.Toolbar})
|
|
|
|
ComponentRegistry.register(DraftDeleteButton, {role: 'DraftActionsToolbarButton'})
|
|
|
|
ComponentRegistry.register(DraftListSendStatus, {role: 'DraftList:DraftStatus'})
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export function deactivate() {
|
|
|
|
ComponentRegistry.unregister(DraftList)
|
|
|
|
ComponentRegistry.unregister(DraftListToolbar)
|
|
|
|
ComponentRegistry.unregister(DraftDeleteButton)
|
|
|
|
ComponentRegistry.unregister(DraftListSendStatus)
|
|
|
|
}
|