mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-12-29 20:04:59 +08:00
a3ede94423
Summary: The TaskQueue does it's own throttling and has it's own processQueue retry timeout, no need for longPollConnected Remove dead code (OfflineError) Rename long connection state to status so we don't ask for `state.state` Remove long poll actions related to online/offline in favor of exposing connection state through NylasSyncStatusStore Consoliate notifications and account-error-heaer into a single package and organize files into sidebar vs. header. Update the DeveloperBarStore to query the sync status store for long poll statuses Test Plan: All existing tests pass Reviewers: juan, evan Reviewed By: evan Differential Revision: https://phab.nylas.com/D2835
24 lines
1.1 KiB
JavaScript
24 lines
1.1 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";
|
|
|
|
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});
|
|
}
|
|
|
|
export function serialize() {}
|
|
|
|
export function deactivate() {
|
|
ComponentRegistry.unregister(ActivitySidebar);
|
|
ComponentRegistry.unregister(NotificationsHeader);
|
|
ComponentRegistry.unregister(ConnectionStatusHeader);
|
|
ComponentRegistry.unregister(AccountErrorHeader);
|
|
}
|