mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-10 02:03:07 +08:00
91edef9f7a
Conflicts: internal_packages/inbox-activity-bar/lib/activity-bar-long-poll-item.cjsx
30 lines
1.1 KiB
CoffeeScript
30 lines
1.1 KiB
CoffeeScript
MessageList = require "./message-list"
|
|
MessageToolbarItems = require "./message-toolbar-items"
|
|
MessageSubjectItem = require "./message-subject-item"
|
|
{ComponentRegistry,
|
|
WorkspaceStore} = require 'nylas-exports'
|
|
SidebarThreadParticipants = require "./sidebar-thread-participants"
|
|
|
|
module.exports =
|
|
item: null # The DOM item the main React component renders into
|
|
|
|
activate: (@state={}) ->
|
|
# Register Message List Actions we provide globally
|
|
ComponentRegistry.register MessageList,
|
|
location: WorkspaceStore.Location.MessageList
|
|
|
|
ComponentRegistry.register MessageToolbarItems,
|
|
location: WorkspaceStore.Location.MessageList.Toolbar
|
|
|
|
ComponentRegistry.register MessageSubjectItem,
|
|
location: WorkspaceStore.Location.MessageList.Toolbar
|
|
|
|
ComponentRegistry.register SidebarThreadParticipants,
|
|
location: WorkspaceStore.Location.MessageListSidebar
|
|
|
|
deactivate: ->
|
|
ComponentRegistry.unregister MessageToolbarItems
|
|
ComponentRegistry.unregister MessageSubjectItem
|
|
ComponentRegistry.unregister MessageList
|
|
|
|
serialize: -> @state
|