network deeplink
Summary: Deep link from the QPL plugin into the network plugin Reviewed By: passy Differential Revision: D10462528 fbshipit-source-id: cc044863191fc4375390165f6b7b7d5c5e9c77e3
This commit is contained in:
committed by
Facebook Github Bot
parent
1904cc3521
commit
61d80b4bb9
@@ -168,7 +168,7 @@ export default class extends FlipperPlugin<State, *, PersistedState> {
|
||||
};
|
||||
|
||||
state = {
|
||||
selectedIds: [],
|
||||
selectedIds: this.props.deepLinkPayload ? [this.props.deepLinkPayload] : [],
|
||||
};
|
||||
|
||||
onRowHighlighted = (selectedIds: Array<RequestId>) =>
|
||||
@@ -203,6 +203,9 @@ export default class extends FlipperPlugin<State, *, PersistedState> {
|
||||
responses={responses || {}}
|
||||
clear={this.clearLogs}
|
||||
onRowHighlighted={this.onRowHighlighted}
|
||||
highlightedRows={
|
||||
this.state.selectedIds ? new Set(this.state.selectedIds) : null
|
||||
}
|
||||
/>
|
||||
<DetailSidebar>{this.renderSidebar()}</DetailSidebar>
|
||||
</FlexColumn>
|
||||
@@ -215,6 +218,7 @@ type NetworkTableProps = {
|
||||
responses: {[id: RequestId]: Response},
|
||||
clear: () => void,
|
||||
onRowHighlighted: (keys: TableHighlightedRows) => void,
|
||||
highlightedRows: ?Set<string>,
|
||||
};
|
||||
|
||||
type NetworkTableState = {|
|
||||
@@ -357,6 +361,7 @@ class NetworkTable extends PureComponent<NetworkTableProps, NetworkTableState> {
|
||||
columns={COLUMNS}
|
||||
rows={this.state.sortedRows}
|
||||
onRowHighlighted={this.props.onRowHighlighted}
|
||||
highlightedRows={this.props.highlightedRows}
|
||||
rowLineHeight={26}
|
||||
zebra={false}
|
||||
actions={<Button onClick={this.props.clear}>Clear Table</Button>}
|
||||
|
||||
Reference in New Issue
Block a user