mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-12 02:58:20 +08:00
4e6b4f4c9c
Summary: still WIP, but functionality is there. TODO: [x] write tests [x] swap out the current markasread icon for the correct markasread icon that @sdw is making [x] figure out how to address this point by @bengotow: https://phab.nylas.com/D2024?id=19139#inline-12168 Test Plan: tested manually. still need to write tests though. Reviewers: evan, bengotow Reviewed By: bengotow Subscribers: sdw Maniphest Tasks: T3483 Differential Revision: https://phab.nylas.com/D2024
51 lines
1.8 KiB
CoffeeScript
51 lines
1.8 KiB
CoffeeScript
MessageList = require "./message-list"
|
|
MessageToolbarItems = require "./message-toolbar-items"
|
|
{ComponentRegistry,
|
|
MessageStore,
|
|
WorkspaceStore} = require 'nylas-exports'
|
|
SidebarThreadParticipants = require "./sidebar-thread-participants"
|
|
|
|
ThreadStarButton = require './thread-star-button'
|
|
ThreadArchiveButton = require './thread-archive-button'
|
|
ThreadToggleUnreadButton = require './thread-toggle-unread-button'
|
|
|
|
AutolinkerExtension = require './plugins/autolinker-extension'
|
|
TrackingPixelsExtension = require './plugins/tracking-pixels-extension'
|
|
|
|
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 SidebarThreadParticipants,
|
|
location: WorkspaceStore.Location.MessageListSidebar
|
|
|
|
ComponentRegistry.register ThreadStarButton,
|
|
role: 'message:Toolbar'
|
|
|
|
ComponentRegistry.register ThreadArchiveButton,
|
|
role: 'message:Toolbar'
|
|
|
|
ComponentRegistry.register ThreadToggleUnreadButton,
|
|
role: 'message:Toolbar'
|
|
|
|
MessageStore.registerExtension(AutolinkerExtension)
|
|
MessageStore.registerExtension(TrackingPixelsExtension)
|
|
|
|
deactivate: ->
|
|
ComponentRegistry.unregister MessageList
|
|
ComponentRegistry.unregister ThreadStarButton
|
|
ComponentRegistry.unregister ThreadArchiveButton
|
|
ComponentRegistry.unregister ThreadToggleUnreadButton
|
|
ComponentRegistry.unregister MessageToolbarItems
|
|
ComponentRegistry.unregister SidebarThreadParticipants
|
|
MessageStore.unregisterExtension(AutolinkerExtension)
|
|
MessageStore.unregisterExtension(TrackingPixelsExtension)
|
|
|
|
serialize: -> @state
|