2016-02-19 02:00:11 +08:00
|
|
|
/** @babel */
|
|
|
|
import {ComponentRegistry} from 'nylas-exports';
|
2016-02-26 05:06:01 +08:00
|
|
|
import {ToolbarSnooze, BulkThreadSnooze} from './snooze-toolbar-components';
|
|
|
|
import SnoozeQuickActionButton from './snooze-quick-action-button'
|
|
|
|
import SnoozeMailLabel from './snooze-mail-label'
|
2016-02-19 02:00:11 +08:00
|
|
|
import SnoozeStore from './snooze-store'
|
|
|
|
|
|
|
|
|
|
|
|
export function activate() {
|
|
|
|
this.snoozeStore = new SnoozeStore()
|
|
|
|
ComponentRegistry.register(ToolbarSnooze, {role: 'message:Toolbar'});
|
2016-02-26 05:06:01 +08:00
|
|
|
ComponentRegistry.register(SnoozeQuickActionButton, {role: 'ThreadListQuickAction'});
|
2016-02-19 02:00:11 +08:00
|
|
|
ComponentRegistry.register(BulkThreadSnooze, {role: 'thread:BulkAction'});
|
2016-03-03 02:05:17 +08:00
|
|
|
ComponentRegistry.register(SnoozeMailLabel, {role: 'Thread:MailLabel'});
|
2016-02-19 02:00:11 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
export function deactivate() {
|
|
|
|
ComponentRegistry.unregister(ToolbarSnooze);
|
2016-02-26 05:06:01 +08:00
|
|
|
ComponentRegistry.unregister(SnoozeQuickActionButton);
|
2016-02-19 02:00:11 +08:00
|
|
|
ComponentRegistry.unregister(BulkThreadSnooze);
|
2016-02-26 05:06:01 +08:00
|
|
|
ComponentRegistry.unregister(SnoozeMailLabel);
|
2016-02-19 02:00:11 +08:00
|
|
|
this.snoozeStore.deactivate()
|
|
|
|
}
|
|
|
|
|
|
|
|
export function serialize() {
|
|
|
|
|
|
|
|
}
|