2017-03-01 01:13:37 +08:00
|
|
|
import {PreferencesUIStore, ExtensionRegistry, ComponentRegistry} from 'nylas-exports';
|
2016-03-01 10:47:22 +08:00
|
|
|
|
|
|
|
import SignatureComposerExtension from './signature-composer-extension';
|
2016-07-12 03:28:37 +08:00
|
|
|
import SignatureComposerDropdown from './signature-composer-dropdown';
|
2016-03-01 10:47:22 +08:00
|
|
|
import PreferencesSignatures from "./preferences-signatures";
|
|
|
|
|
|
|
|
export function activate() {
|
|
|
|
this.preferencesTab = new PreferencesUIStore.TabItem({
|
|
|
|
tabId: "Signatures",
|
|
|
|
displayName: "Signatures",
|
|
|
|
component: PreferencesSignatures,
|
|
|
|
});
|
|
|
|
|
|
|
|
ExtensionRegistry.Composer.register(SignatureComposerExtension);
|
|
|
|
PreferencesUIStore.registerPreferencesTab(this.preferencesTab);
|
2016-07-12 03:28:37 +08:00
|
|
|
|
|
|
|
ComponentRegistry.register(SignatureComposerDropdown, {
|
|
|
|
role: 'Composer:FromFieldComponents',
|
|
|
|
});
|
2016-03-01 10:47:22 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
export function deactivate() {
|
|
|
|
ExtensionRegistry.Composer.unregister(SignatureComposerExtension);
|
|
|
|
PreferencesUIStore.unregisterPreferencesTab(this.preferencesTab.sectionId);
|
2016-07-12 03:28:37 +08:00
|
|
|
|
|
|
|
ComponentRegistry.unregister(SignatureComposerDropdown);
|
2016-03-01 10:47:22 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
export function serialize() {
|
|
|
|
return {};
|
|
|
|
}
|