mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-04 07:10:06 +08:00
17 lines
516 B
JavaScript
17 lines
516 B
JavaScript
const MovePicker = require('./move-picker');
|
|
const LabelPicker = require('./label-picker');
|
|
|
|
const { ComponentRegistry } = require('mailspring-exports');
|
|
|
|
module.exports = {
|
|
activate(state = {}) {
|
|
this.state = state;
|
|
ComponentRegistry.register(MovePicker, { role: 'ThreadActionsToolbarButton' });
|
|
ComponentRegistry.register(LabelPicker, { role: 'ThreadActionsToolbarButton' });
|
|
},
|
|
|
|
deactivate() {
|
|
ComponentRegistry.unregister(MovePicker);
|
|
ComponentRegistry.unregister(LabelPicker);
|
|
},
|
|
};
|