update PluginManager links

Summary: Adding Plugin Manager to menu bar and update wording in sidebar

Reviewed By: passy

Differential Revision: D17450840

fbshipit-source-id: 9426e6053f454a8e3776e9e0e061cd119f8dc7b5
This commit is contained in:
Daniel Büchele
2019-09-19 02:31:33 -07:00
committed by Facebook Github Bot
parent 8c623867bd
commit a77faa5318
2 changed files with 12 additions and 2 deletions

View File

@@ -7,7 +7,11 @@
import {FlipperPlugin, FlipperDevicePlugin} from './plugin'; import {FlipperPlugin, FlipperDevicePlugin} from './plugin';
import {showOpenDialog} from './utils/exportData'; import {showOpenDialog} from './utils/exportData';
import {setSelectPluginsToExportActiveSheet} from './reducers/application'; import {
setSelectPluginsToExportActiveSheet,
setActiveSheet,
ACTIVE_SHEET_PLUGINS,
} from './reducers/application';
import {Store} from './reducers/'; import {Store} from './reducers/';
import electron, {MenuItemConstructorOptions} from 'electron'; import electron, {MenuItemConstructorOptions} from 'electron';
import {notNull} from './utils/typeUtils'; import {notNull} from './utils/typeUtils';
@@ -294,6 +298,12 @@ function getTemplate(
} }
}, },
}, },
{
label: 'Manage Plugins...',
click: function() {
store.dispatch(setActiveSheet(ACTIVE_SHEET_PLUGINS));
},
},
{ {
label: 'Toggle Developer Tools', label: 'Toggle Developer Tools',
accelerator: (function() { accelerator: (function() {

View File

@@ -399,7 +399,7 @@ class MainSidebar extends PureComponent<Props> {
variant="outline" variant="outline"
color={colors.blackAlpha30} color={colors.blackAlpha30}
/> />
&nbsp;Plugin not showing? &nbsp;Manage Plugins...
</PluginDebugger> </PluginDebugger>
{config.showLogin && <UserAccount />} {config.showLogin && <UserAccount />}
</Sidebar> </Sidebar>