2017-09-27 02:42:18 +08:00
|
|
|
import { ComponentRegistry } from 'mailspring-exports';
|
2017-09-27 02:33:08 +08:00
|
|
|
import PersonalLevelIcon from './personal-level-icon';
|
2016-03-01 10:47:22 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
All packages must export a basic object that has at least the following 3
|
|
|
|
methods:
|
|
|
|
|
|
|
|
1. `activate` - Actions to take once the package gets turned on.
|
2017-10-09 02:18:29 +08:00
|
|
|
Pre-enabled packages get activated on Mailspring bootup. They can also be
|
2016-03-01 10:47:22 +08:00
|
|
|
activated manually by a user.
|
|
|
|
|
|
|
|
2. `deactivate` - Actions to take when a package gets turned off. This can
|
|
|
|
happen when a user manually disables a package.
|
|
|
|
*/
|
|
|
|
|
|
|
|
export function activate() {
|
|
|
|
ComponentRegistry.register(PersonalLevelIcon, {
|
|
|
|
role: 'ThreadListIcon',
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
export function deactivate() {
|
|
|
|
ComponentRegistry.unregister(PersonalLevelIcon);
|
|
|
|
}
|