Mailspring/internal_packages/plugins/lib/plugins-actions.jsx
Jackie Luo 45ef25fc02 🎨(preferences): Updates preferences to look prettier
Summary:
Adds new redesigned preferences with horizontal tab bar and refactored code.

Converts Preferences, Plugins, and a few components to ES6.

Test Plan: Tested locally.

Reviewers: evan, bengotow

Reviewed By: bengotow

Subscribers: juan

Differential Revision: https://phab.nylas.com/D2818
2016-04-01 14:01:26 -07:00

28 lines
515 B
JavaScript

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;