From cd8c4a64f0b6aa74e8190c53bf21924d291b76e0 Mon Sep 17 00:00:00 2001 From: Pavel Paroulek Date: Tue, 28 May 2019 14:43:01 +0200 Subject: Adding edgerule filtering Adding edgerule filter and removing 'Both' option from drop down menu Change-Id: I1969052166cc213a891d52fef9e79c1901ff7f9f Issue-ID: AAI-531 Signed-off-by: Pavel Paroulek --- graphgraph-fe/src/GraphHops.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'graphgraph-fe/src/GraphHops.js') diff --git a/graphgraph-fe/src/GraphHops.js b/graphgraph-fe/src/GraphHops.js index cd5763a..de7a4cc 100644 --- a/graphgraph-fe/src/GraphHops.js +++ b/graphgraph-fe/src/GraphHops.js @@ -50,7 +50,14 @@ class GraphHops extends React.Component { } render () { - // {createNumInput('cousin hops', this.onChangeCousin, this.state.cousinHops)} + if (this.props.edgeFilter === 'Edgerules'){ + return ( +
+ {createNumInput('edgerule hops', this.onChangeCousin, this.state.cousinHops)} +
+ ) + } + return (
{createNumInput('parent hops', this.onChangeParent, this.state.parentHops)} -- cgit 1.2.3-korg