2015-10-04 09:11:29 +08:00
|
|
|
{ComponentRegistry,
|
2016-01-08 06:56:34 +08:00
|
|
|
PreferencesUIStore,
|
2015-10-04 09:11:29 +08:00
|
|
|
WorkspaceStore} = require 'nylas-exports'
|
|
|
|
|
|
|
|
module.exports =
|
|
|
|
|
|
|
|
activate: (@state={}) ->
|
2016-01-08 06:56:34 +08:00
|
|
|
@preferencesTab = new PreferencesUIStore.TabItem
|
|
|
|
tabId: "Plugins"
|
|
|
|
displayName: "Plugins"
|
|
|
|
component: require "./preferences-plugins"
|
2015-10-04 09:11:29 +08:00
|
|
|
|
2016-01-08 06:56:34 +08:00
|
|
|
PreferencesUIStore.registerPreferencesTab(@preferencesTab)
|
2015-10-04 09:11:29 +08:00
|
|
|
|
|
|
|
deactivate: ->
|
2016-01-08 06:56:34 +08:00
|
|
|
PreferencesUIStore.unregisterPreferencesTab(@preferencesTab.sectionId)
|