mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-14 21:57:55 +08:00
e82278ab25
Summary: - Add FixedPopover, an absolutely positioned popover component to use for swipe snoozing: - This component needs to be finished, as its current behavior is primarily for the snooze plugin - Updates popover.cjsx to properly render pointer for thesnooze popover for the `down` direction - Adds new design assets - Adds date input to snooze popover Test Plan: - TODO Reviewers: evan, bengotow Reviewed By: bengotow Differential Revision: https://phab.nylas.com/D2624
24 lines
804 B
JavaScript
24 lines
804 B
JavaScript
/** @babel */
|
|
import {ComponentRegistry} from 'nylas-exports';
|
|
import {ToolbarSnooze, BulkThreadSnooze} from './toolbar-components';
|
|
import QuickActionSnoozeButton from './quick-action-snooze-button'
|
|
import SnoozeStore from './snooze-store'
|
|
|
|
|
|
export function activate() {
|
|
this.snoozeStore = new SnoozeStore()
|
|
ComponentRegistry.register(ToolbarSnooze, {role: 'message:Toolbar'});
|
|
ComponentRegistry.register(QuickActionSnoozeButton, {role: 'ThreadListQuickAction'});
|
|
ComponentRegistry.register(BulkThreadSnooze, {role: 'thread:BulkAction'});
|
|
}
|
|
|
|
export function deactivate() {
|
|
ComponentRegistry.unregister(ToolbarSnooze);
|
|
ComponentRegistry.unregister(QuickActionSnoozeButton);
|
|
ComponentRegistry.unregister(BulkThreadSnooze);
|
|
this.snoozeStore.deactivate()
|
|
}
|
|
|
|
export function serialize() {
|
|
|
|
}
|