Mailspring/internal_packages/plugins/lib/plugins-actions.jsx

29 lines
515 B
React
Raw Normal View History

import Reflux from 'reflux';
const Actions = Reflux.createActions([
'selectTabIndex',
'setInstalledSearchValue',
'setGlobalSearchValue',
'disablePackage',
'enablePackage',
'installPackage',
'installNewPackage',
'uninstallPackage',
'createPackage',
'reloadPackage',
'showPackage',
'updatePackage',
'refreshFeaturedPackages',
'refreshInstalledPackages',
]);
for (const key in Actions) {
if (Actions.hasOwnProperty(key)) {
Actions[key].sync = true;
}
}
export default Actions;