mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 18:32:20 +08:00
d6336dae08
commit d1c455515e04424d429c87a07aff248a4a767f23 Merge: 72e5536 512f8db Author: Ben Gotow <bengotow@gmail.com> Date: Thu Feb 19 18:42:29 2015 -0800 Merge sheet and flexbox components, fonts, and more Conflicts: static/workspace-view.less commit 72e553652f5b26a96155c51e04db46baafb916be Author: Ben Gotow <bengotow@gmail.com> Date: Wed Feb 18 12:33:08 2015 -0800 Start transitioning to a better set of ui-variables (from bootstrap) commit ed22fb7fe1c6544af44fae69b83e7e63965ddf4d Author: Ben Gotow <bengotow@gmail.com> Date: Wed Feb 18 11:55:58 2015 -0800 I hate CSS commit 512f8db414ceef74712c9d63ba5a67b44cf778c4 Author: Ben Gotow <bengotow@gmail.com> Date: Mon Feb 16 10:10:44 2015 -0800 Initial work on top toolbar commit c2d7a0e0a2f6f6ebe254cca24ad0735336d57b70 Author: Ben Gotow <bengotow@gmail.com> Date: Thu Feb 12 18:47:26 2015 -0800 New UI Prototype interaction / stores for sheets
44 lines
1.3 KiB
CoffeeScript
44 lines
1.3 KiB
CoffeeScript
React = require "react"
|
|
MessageList = require "./message-list"
|
|
{ComponentRegistry} = require 'inbox-exports'
|
|
|
|
{ReplyButton,
|
|
ReplyAllButton,
|
|
ForwardButton,
|
|
ArchiveButton} = require "./core-primary-actions.cjsx"
|
|
|
|
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: 'edgehill-reply-button'
|
|
role: 'MessageListPrimaryAction'
|
|
view: ReplyButton
|
|
ComponentRegistry.register
|
|
name: 'edgehill-reply-all-button'
|
|
role: 'MessageListPrimaryAction'
|
|
view: ReplyAllButton
|
|
ComponentRegistry.register
|
|
name: 'edgehill-forward-button'
|
|
role: 'MessageListPrimaryAction'
|
|
view: ForwardButton
|
|
ComponentRegistry.register
|
|
name: 'edgehill-archive-button'
|
|
role: 'MessageListPrimaryAction'
|
|
view: ArchiveButton
|
|
|
|
ComponentRegistry.register
|
|
name: 'MessageList'
|
|
role: 'ThreadList:Right'
|
|
view: MessageList
|
|
|
|
deactivate: ->
|
|
ComponentRegistry.unregister 'edgehill-reply-button'
|
|
ComponentRegistry.unregister 'edgehill-reply-all-button'
|
|
ComponentRegistry.unregister 'edgehill-forward-button'
|
|
ComponentRegistry.unregister 'edgehill-archive-button'
|
|
ComponentRegistry.unregister 'MessageList'
|
|
|
|
serialize: -> @state
|