2017-09-27 02:33:08 +08:00
|
|
|
import { PreferencesUIStore } from 'nylas-exports';
|
2016-04-01 06:52:03 +08:00
|
|
|
import PluginsView from './preferences-plugins';
|
|
|
|
|
|
|
|
export function activate() {
|
|
|
|
this.preferencesTab = new PreferencesUIStore.TabItem({
|
2017-09-27 02:33:08 +08:00
|
|
|
tabId: 'Plugins',
|
|
|
|
displayName: 'Plugins',
|
2017-09-05 13:42:08 +08:00
|
|
|
componentClassFn: () => PluginsView,
|
2016-04-01 06:52:03 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
PreferencesUIStore.registerPreferencesTab(this.preferencesTab);
|
|
|
|
}
|
|
|
|
|
|
|
|
export function deactivate() {
|
2017-09-27 02:33:08 +08:00
|
|
|
PreferencesUIStore.unregisterPreferencesTab(this.preferencesTab.sectionId);
|
2016-04-01 06:52:03 +08:00
|
|
|
}
|