2016-03-01 10:47:22 +08:00
|
|
|
import {PreferencesUIStore, ExtensionRegistry} from 'nylas-exports';
|
|
|
|
|
|
|
|
import SignatureComposerExtension from './signature-composer-extension';
|
|
|
|
import SignatureStore from './signature-store';
|
|
|
|
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-03-15 08:04:40 +08:00
|
|
|
SignatureStore.activate();
|
2016-03-01 10:47:22 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
export function deactivate() {
|
|
|
|
ExtensionRegistry.Composer.unregister(SignatureComposerExtension);
|
|
|
|
PreferencesUIStore.unregisterPreferencesTab(this.preferencesTab.sectionId);
|
2016-03-15 08:04:40 +08:00
|
|
|
SignatureStore.deactivate();
|
2016-03-01 10:47:22 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
export function serialize() {
|
|
|
|
return {};
|
|
|
|
}
|