Add UI to select plugins
Summary: Adds UI to the select the plugin to export. It lists the plugins which has currently some data in the redux store and it also lists those plugins which has implemented `exportPersistedState` function, as it might happen that the redux store may not have the data for a plugin but it will still export the data by calling `exportPersistedState`, which will ping the mobile client to get the data at point while we export the flipper trace. Reviewed By: jknoxville Differential Revision: D16468408 fbshipit-source-id: 452a7caf7199dd2b8df330bbb10d0a90008e92ec
This commit is contained in:
committed by
Facebook Github Bot
parent
aa470a9aef
commit
e7198040ea
@@ -10,6 +10,7 @@ import {showOpenDialog} from './utils/exportData.js';
|
||||
import {
|
||||
setExportDataToFileActiveSheet,
|
||||
setActiveSheet,
|
||||
setSelectPluginsToExportActiveSheet,
|
||||
ACTIVE_SHEET_SHARE_DATA,
|
||||
} from './reducers/application';
|
||||
import type {Store} from './reducers/';
|
||||
@@ -201,7 +202,9 @@ function getTemplate(
|
||||
if (!file) {
|
||||
return;
|
||||
}
|
||||
store.dispatch(setExportDataToFileActiveSheet(file));
|
||||
store.dispatch(
|
||||
setSelectPluginsToExportActiveSheet({type: 'file', file: file}),
|
||||
);
|
||||
},
|
||||
);
|
||||
},
|
||||
@@ -212,7 +215,7 @@ function getTemplate(
|
||||
label: 'Sharable Link',
|
||||
accelerator: 'CommandOrControl+Shift+E',
|
||||
click: async function(item: Object, focusedWindow: Object) {
|
||||
store.dispatch(setActiveSheet(ACTIVE_SHEET_SHARE_DATA));
|
||||
store.dispatch(setSelectPluginsToExportActiveSheet({type: 'link'}));
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user