mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-14 13:44:41 +08:00
23 lines
723 B
Text
23 lines
723 B
Text
|
SettingsView = require "./settings-view"
|
||
|
SettingsTabsView = require "./settings-tabs-view"
|
||
|
|
||
|
{ComponentRegistry,
|
||
|
WorkspaceStore} = require 'nylas-exports'
|
||
|
|
||
|
module.exports =
|
||
|
|
||
|
activate: (@state={}) ->
|
||
|
WorkspaceStore.defineSheet 'Settings', {root: true, supportedModes: ['list'], name: 'Settings'},
|
||
|
list: ['RootSidebar', 'SettingsSidebar', 'Settings']
|
||
|
|
||
|
ComponentRegistry.register SettingsTabsView,
|
||
|
location: WorkspaceStore.Location.SettingsSidebar
|
||
|
|
||
|
ComponentRegistry.register SettingsView,
|
||
|
location: WorkspaceStore.Location.Settings
|
||
|
|
||
|
deactivate: ->
|
||
|
ComponentRegistry.unregister(SettingsView)
|
||
|
ComponentRegistry.unregister(SettingsTabsView)
|
||
|
WorkspaceStore.undefineSheet('Settings')
|