mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 18:32:20 +08:00
2380e1eefa
- Ensures that it displays the correct set of sidebar items even when the perspective changes - Also sets up hotkeys to switch currently focused accounts
15 lines
504 B
CoffeeScript
15 lines
504 B
CoffeeScript
React = require "react"
|
|
AccountSidebar = require "./components/account-sidebar"
|
|
SidebarCommands = require "./sidebar-commands"
|
|
{ComponentRegistry, WorkspaceStore} = require "nylas-exports"
|
|
|
|
module.exports =
|
|
item: null # The DOM item the main React component renders into
|
|
|
|
activate: (@state) ->
|
|
ComponentRegistry.register AccountSidebar,
|
|
location: WorkspaceStore.Location.RootSidebar
|
|
SidebarCommands.register()
|
|
|
|
deactivate: (@state) ->
|
|
ComponentRegistry.unregister(AccountSidebar)
|