mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-12 04:25:31 +08:00
7533c7ae81
Summary: Add header to show how many trial days remain More rendering out of Store, consolidate registry and store and expose via new serviceRegistry WIP Merge branch 'master' into hallamoore/feature-walkthrough-tutorial Switch to using observable instead of AbortablePromise Update submodule WIP WIP Remove annotations Remove changes WIP Test Plan: No tests Reviewers: evan, juan Reviewed By: juan Differential Revision: https://phab.nylas.com/D3260
27 lines
1.3 KiB
JavaScript
27 lines
1.3 KiB
JavaScript
/* eslint no-unused-vars:0 */
|
|
|
|
import {ComponentRegistry, WorkspaceStore} from 'nylas-exports';
|
|
import ActivitySidebar from "./sidebar/activity-sidebar";
|
|
import NotificationStore from './notifications-store';
|
|
import ConnectionStatusHeader from './headers/connection-status-header';
|
|
import AccountErrorHeader from './headers/account-error-header';
|
|
import NotificationsHeader from "./headers/notifications-header";
|
|
import TrialRemainingHeader from "./headers/trial-remaining-header";
|
|
|
|
export function activate() {
|
|
ComponentRegistry.register(ActivitySidebar, {location: WorkspaceStore.Location.RootSidebar});
|
|
ComponentRegistry.register(NotificationsHeader, {location: WorkspaceStore.Sheet.Global.Header});
|
|
ComponentRegistry.register(ConnectionStatusHeader, {location: WorkspaceStore.Sheet.Global.Header});
|
|
ComponentRegistry.register(AccountErrorHeader, {location: WorkspaceStore.Sheet.Threads.Header});
|
|
ComponentRegistry.register(TrialRemainingHeader, {location: WorkspaceStore.Sheet.Global.Header});
|
|
}
|
|
|
|
export function serialize() {}
|
|
|
|
export function deactivate() {
|
|
ComponentRegistry.unregister(ActivitySidebar);
|
|
ComponentRegistry.unregister(NotificationsHeader);
|
|
ComponentRegistry.unregister(ConnectionStatusHeader);
|
|
ComponentRegistry.unregister(AccountErrorHeader);
|
|
ComponentRegistry.unregister(TrialRemainingHeader);
|
|
}
|