Deeplink support
Summary: This diff adds the support to deeplink to the litho form. Reviewed By: passy Differential Revision: D17792341 fbshipit-source-id: b146993163b14df000c499236da48b7e8066f457
This commit is contained in:
committed by
Facebook Github Bot
parent
f924b0ae1b
commit
dfc4f74ed3
@@ -7,9 +7,11 @@
|
|||||||
|
|
||||||
import {remote, ipcRenderer} from 'electron';
|
import {remote, ipcRenderer} from 'electron';
|
||||||
import {toggleAction} from '../reducers/application';
|
import {toggleAction} from '../reducers/application';
|
||||||
|
import {setStaticView} from '../reducers/connections';
|
||||||
import {Store} from '../reducers/index.js';
|
import {Store} from '../reducers/index.js';
|
||||||
import {Logger} from '../fb-interfaces/Logger';
|
import {Logger} from '../fb-interfaces/Logger';
|
||||||
import {parseFlipperPorts} from '../utils/environmentVariables';
|
import {parseFlipperPorts} from '../utils/environmentVariables';
|
||||||
|
import SupportRequestFormManager from '../fb-stubs/SupportRequestFormManager';
|
||||||
import {
|
import {
|
||||||
importDataToStore,
|
importDataToStore,
|
||||||
importFileToStore,
|
importFileToStore,
|
||||||
@@ -71,6 +73,8 @@ export default (store: Store, logger: Logger) => {
|
|||||||
store.dispatch(toggleAction('downloadingImportData', false));
|
store.dispatch(toggleAction('downloadingImportData', false));
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
} else if (query === 'flipper://support-form?form=Litho') {
|
||||||
|
store.dispatch(setStaticView(SupportRequestFormManager));
|
||||||
}
|
}
|
||||||
const match = uriComponents(query);
|
const match = uriComponents(query);
|
||||||
if (match.length > 1) {
|
if (match.length > 1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user