Rework sidebar selection
Summary: - Make sure newly connecting apps are automatically selected - Improved the sidebar UI by using more consistent, spacious styling, and giving some more attention to error states Reviewed By: passy Differential Revision: D18505636 fbshipit-source-id: 18b2c8e78be13aabb3a54c60553f6b0d1e613b27
This commit is contained in:
committed by
Facebook Github Bot
parent
5bd0cd3d63
commit
9f7be13e39
@@ -468,7 +468,7 @@ export async function getStoreExport(
|
||||
const state = store.getState();
|
||||
const {clients} = state.connections;
|
||||
const client = clients.find(
|
||||
client => client.query.app === state.connections.selectedClient,
|
||||
client => client.query.app === state.connections.selectedApp,
|
||||
);
|
||||
const {pluginStates} = state;
|
||||
const {plugins} = state;
|
||||
@@ -616,6 +616,7 @@ export function importDataToStore(source: string, data: string, store: Store) {
|
||||
});
|
||||
return;
|
||||
}
|
||||
archivedDevice.loadDevicePlugins(store.getState().plugins.devicePlugins);
|
||||
store.dispatch({
|
||||
type: 'REGISTER_DEVICE',
|
||||
payload: archivedDevice,
|
||||
|
||||
Reference in New Issue
Block a user