mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-23 00:36:50 +08:00
b89fea38c0
Summary: This is the initial diff for the label picker UI. This is all of the functionality and none of the CSS. Test Plan: todo Reviewers: bengotow Reviewed By: bengotow Subscribers: sdw Differential Revision: https://phab.nylas.com/D1761
38 lines
1.3 KiB
CoffeeScript
38 lines
1.3 KiB
CoffeeScript
MessageList = require "./message-list"
|
|
MessageToolbarItems = require "./message-toolbar-items"
|
|
{ComponentRegistry,
|
|
WorkspaceStore} = require 'nylas-exports'
|
|
SidebarThreadParticipants = require "./sidebar-thread-participants"
|
|
|
|
ThreadStarButton = require './thread-star-button'
|
|
ThreadArchiveButton = require './thread-archive-button'
|
|
|
|
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'
|
|
|
|
deactivate: ->
|
|
ComponentRegistry.unregister MessageList
|
|
ComponentRegistry.unregister ThreadStarButton
|
|
ComponentRegistry.unregister ThreadArchiveButton
|
|
ComponentRegistry.unregister MessageToolbarItems
|
|
ComponentRegistry.unregister SidebarThreadParticipants
|
|
|
|
serialize: -> @state
|