mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-12 12:40:08 +08:00
e3fc29ee36
Summary: - FixedPopover now correctly adjusts itself when overflowing outside window, in all directions - Updates styles - Adds specs - Remove Popover and popover.less, and refactor all code that used it in favor of the new FixedPopover Test Plan: Unit tests Reviewers: drew, evan, bengotow Reviewed By: bengotow Differential Revision: https://phab.nylas.com/D2697
28 lines
945 B
JavaScript
28 lines
945 B
JavaScript
/** @babel */
|
|
import {ComponentRegistry} from 'nylas-exports';
|
|
import {ToolbarSnooze, BulkThreadSnooze, QuickActionSnooze} from './snooze-buttons';
|
|
import SnoozeMailLabel from './snooze-mail-label'
|
|
import SnoozeStore from './snooze-store'
|
|
|
|
|
|
export function activate() {
|
|
this.snoozeStore = new SnoozeStore()
|
|
|
|
this.snoozeStore.activate()
|
|
ComponentRegistry.register(ToolbarSnooze, {role: 'message:Toolbar'});
|
|
ComponentRegistry.register(QuickActionSnooze, {role: 'ThreadListQuickAction'});
|
|
ComponentRegistry.register(BulkThreadSnooze, {role: 'thread:BulkAction'});
|
|
ComponentRegistry.register(SnoozeMailLabel, {role: 'Thread:MailLabel'});
|
|
}
|
|
|
|
export function deactivate() {
|
|
ComponentRegistry.unregister(ToolbarSnooze);
|
|
ComponentRegistry.unregister(QuickActionSnooze);
|
|
ComponentRegistry.unregister(BulkThreadSnooze);
|
|
ComponentRegistry.unregister(SnoozeMailLabel);
|
|
this.snoozeStore.deactivate()
|
|
}
|
|
|
|
export function serialize() {
|
|
|
|
}
|