mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 18:32:20 +08:00
78665c5fec
Summary: - Update menus and shortcuts correclt when accounts change or focused accounts change - Move menu logic into SidebarCommands to remove duplicated logic - Make `Window` menu also contain checkboxes Test Plan: - Manual Reviewers: evan, bengotow Reviewed By: bengotow Differential Revision: https://phab.nylas.com/D2534
13 lines
426 B
CoffeeScript
13 lines
426 B
CoffeeScript
React = require "react"
|
|
AccountSidebar = require "./components/account-sidebar"
|
|
{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
|
|
|
|
deactivate: (@state) ->
|
|
ComponentRegistry.unregister(AccountSidebar)
|