mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 18:32:20 +08:00
343e592569
Summary: Adds the draft list using a refactored list-tabular class. Also fixes several draft bugs that appeared after allowing editing. Test Plan: Run tests (need to test new ListTabular component ASAP) Reviewers: evan Reviewed By: evan Differential Revision: https://review.inboxapp.com/D1272
25 lines
720 B
CoffeeScript
25 lines
720 B
CoffeeScript
React = require "react"
|
|
MessageList = require "./message-list"
|
|
MessageToolbarItems = require "./message-toolbar-items.cjsx"
|
|
{ComponentRegistry} = require 'inbox-exports'
|
|
|
|
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: 'MessageToolbarItems'
|
|
role: 'MessageList:Toolbar'
|
|
view: MessageToolbarItems
|
|
|
|
ComponentRegistry.register
|
|
name: 'MessageList'
|
|
role: 'Root:Right'
|
|
view: MessageList
|
|
|
|
deactivate: ->
|
|
ComponentRegistry.unregister 'MessageToolbarItems'
|
|
ComponentRegistry.unregister 'MessageList'
|
|
|
|
serialize: -> @state
|