mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-10 18:23:21 +08:00
27345e7719
Summary: fix message list nav buttons fix buttons Test Plan: edgehill --test Reviewers: bengotow Reviewed By: bengotow Differential Revision: https://review.inboxapp.com/D1332
53 lines
1.7 KiB
CoffeeScript
53 lines
1.7 KiB
CoffeeScript
MessageList = require "./message-list"
|
|
MessageToolbarItems = require "./message-toolbar-items"
|
|
MessageSubjectItem = require "./message-subject-item"
|
|
{DownButton, UpButton} = require "./thread-nav-buttons"
|
|
{ComponentRegistry,
|
|
WorkspaceStore} = require 'inbox-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
|
|
name: 'MessageList'
|
|
view: MessageList
|
|
location: WorkspaceStore.Location.MessageList
|
|
|
|
ComponentRegistry.register
|
|
name: 'MessageToolbarItems'
|
|
view: MessageToolbarItems
|
|
location: WorkspaceStore.Location.MessageList.Toolbar
|
|
|
|
ComponentRegistry.register
|
|
name: 'MessageSubjectItem'
|
|
view: MessageSubjectItem
|
|
location: WorkspaceStore.Location.MessageList.Toolbar
|
|
|
|
ComponentRegistry.register
|
|
name: 'DownButton'
|
|
mode: 'list'
|
|
view: DownButton
|
|
location: WorkspaceStore.Sheet.Thread.Toolbar.Right
|
|
|
|
ComponentRegistry.register
|
|
name: 'UpButton'
|
|
mode: 'list'
|
|
view: UpButton
|
|
location: WorkspaceStore.Sheet.Thread.Toolbar.Right
|
|
|
|
ComponentRegistry.register
|
|
name: 'SidebarThreadParticipants'
|
|
location: WorkspaceStore.Location.MessageListSidebar
|
|
view: SidebarThreadParticipants
|
|
|
|
deactivate: ->
|
|
ComponentRegistry.unregister 'MessageToolbarItems'
|
|
ComponentRegistry.unregister 'MessageSubjectItem'
|
|
ComponentRegistry.unregister 'MessageList'
|
|
ComponentRegistry.unregister 'DownButton'
|
|
ComponentRegistry.unregister 'UpButton'
|
|
|
|
serialize: -> @state
|