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 = {
|
state = {
|
||||||
selectedIds: [],
|
selectedIds: this.props.deepLinkPayload ? [this.props.deepLinkPayload] : [],
|
||||||
};
|
};
|
||||||
|
|
||||||
onRowHighlighted = (selectedIds: Array<RequestId>) =>
|
onRowHighlighted = (selectedIds: Array<RequestId>) =>
|
||||||
@@ -203,6 +203,9 @@ export default class extends FlipperPlugin<State, *, PersistedState> {
|
|||||||
responses={responses || {}}
|
responses={responses || {}}
|
||||||
clear={this.clearLogs}
|
clear={this.clearLogs}
|
||||||
onRowHighlighted={this.onRowHighlighted}
|
onRowHighlighted={this.onRowHighlighted}
|
||||||
|
highlightedRows={
|
||||||
|
this.state.selectedIds ? new Set(this.state.selectedIds) : null
|
||||||
|
}
|
||||||
/>
|
/>
|
||||||
<DetailSidebar>{this.renderSidebar()}</DetailSidebar>
|
<DetailSidebar>{this.renderSidebar()}</DetailSidebar>
|
||||||
</FlexColumn>
|
</FlexColumn>
|
||||||
@@ -215,6 +218,7 @@ type NetworkTableProps = {
|
|||||||
responses: {[id: RequestId]: Response},
|
responses: {[id: RequestId]: Response},
|
||||||
clear: () => void,
|
clear: () => void,
|
||||||
onRowHighlighted: (keys: TableHighlightedRows) => void,
|
onRowHighlighted: (keys: TableHighlightedRows) => void,
|
||||||
|
highlightedRows: ?Set<string>,
|
||||||
};
|
};
|
||||||
|
|
||||||
type NetworkTableState = {|
|
type NetworkTableState = {|
|
||||||
@@ -357,6 +361,7 @@ class NetworkTable extends PureComponent<NetworkTableProps, NetworkTableState> {
|
|||||||
columns={COLUMNS}
|
columns={COLUMNS}
|
||||||
rows={this.state.sortedRows}
|
rows={this.state.sortedRows}
|
||||||
onRowHighlighted={this.props.onRowHighlighted}
|
onRowHighlighted={this.props.onRowHighlighted}
|
||||||
|
highlightedRows={this.props.highlightedRows}
|
||||||
rowLineHeight={26}
|
rowLineHeight={26}
|
||||||
zebra={false}
|
zebra={false}
|
||||||
actions={<Button onClick={this.props.clear}>Clear Table</Button>}
|
actions={<Button onClick={this.props.clear}>Clear Table</Button>}
|
||||||
|
|||||||
Reference in New Issue
Block a user