mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-14 05:41:05 +08:00
d5f4aa4ac0
- The FocusedContactStore was triggering too often, and leaving it up to the FullcontactStore to fetch the full Contact model for the focused contact (pulled from thread.) The FocusedContactStore triggers more responsibly, and registering for the role "MessageListSidebar:ContactCard" now gives you the focused contact as a full database model. The whole ContactCard region also fades in and out.
16 lines
414 B
CoffeeScript
16 lines
414 B
CoffeeScript
_ = require 'underscore'
|
|
React = require "react"
|
|
SidebarFullContact = require "./sidebar-fullcontact"
|
|
{ComponentRegistry, WorkspaceStore} = require "nylas-exports"
|
|
|
|
module.exports =
|
|
item: null
|
|
|
|
activate: (@state={}) ->
|
|
ComponentRegistry.register SidebarFullContact,
|
|
role: "MessageListSidebar:ContactCard"
|
|
|
|
deactivate: ->
|
|
ComponentRegistry.unregister(SidebarFullContact)
|
|
|
|
serialize: -> @state
|