mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-14 21:57:55 +08:00
0efdec5fd5
Summary: Rename ActivityBar => DeveloperBar Expose sync workers and make them observable New activity sidebar that replaces momentary notifications Updated specs Test Plan: Run new specs! Reviewers: evan Reviewed By: evan Maniphest Tasks: T1131 Differential Revision: https://phab.nylas.com/D1521
20 lines
664 B
CoffeeScript
20 lines
664 B
CoffeeScript
React = require "react"
|
|
ActivitySidebar = require "./activity-sidebar"
|
|
NotificationsStickyBar = require "./notifications-sticky-bar"
|
|
{ComponentRegistry, WorkspaceStore} = require("nylas-exports")
|
|
|
|
module.exports =
|
|
item: null # The DOM item the main React component renders into
|
|
|
|
activate: (@state={}) ->
|
|
ComponentRegistry.register ActivitySidebar,
|
|
location: WorkspaceStore.Location.RootSidebar
|
|
|
|
ComponentRegistry.register NotificationsStickyBar,
|
|
location: WorkspaceStore.Sheet.Global.Header
|
|
|
|
deactivate: ->
|
|
ComponentRegistry.unregister(ActivitySidebar)
|
|
ComponentRegistry.unregister(NotificationsStickyBar)
|
|
|
|
serialize: -> @state
|