mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 18:32:20 +08:00
29 lines
1 KiB
CoffeeScript
29 lines
1 KiB
CoffeeScript
{ComponentRegistry,
|
|
ExtensionRegistry,
|
|
WorkspaceStore} = require 'nylas-exports'
|
|
|
|
MessageList = require "./message-list"
|
|
MessageListHiddenMessagesToggle = require('./message-list-hidden-messages-toggle').default
|
|
|
|
SidebarPluginContainer = require "./sidebar-plugin-container"
|
|
SidebarParticipantPicker = require('./sidebar-participant-picker').default
|
|
|
|
module.exports =
|
|
activate: ->
|
|
# Register Message List Actions we provide globally
|
|
ComponentRegistry.register MessageList,
|
|
location: WorkspaceStore.Location.MessageList
|
|
|
|
ComponentRegistry.register SidebarParticipantPicker,
|
|
location: WorkspaceStore.Location.MessageListSidebar
|
|
|
|
ComponentRegistry.register SidebarPluginContainer,
|
|
location: WorkspaceStore.Location.MessageListSidebar
|
|
|
|
ComponentRegistry.register MessageListHiddenMessagesToggle,
|
|
role: 'MessageListHeaders'
|
|
|
|
deactivate: ->
|
|
ComponentRegistry.unregister MessageList
|
|
ComponentRegistry.unregister SidebarPluginContainer
|
|
ComponentRegistry.unregister SidebarParticipantPicker
|