mirror of
https://github.com/ascribe/onion.git
synced 2025-01-05 11:25:09 +01:00
Hide PieceListToolbarFilterWidget when no filters are applicable
This commit is contained in:
parent
b8c58aa900
commit
d035f1e41c
@ -81,6 +81,7 @@ let PieceListToolbarFilterWidget = React.createClass({
|
|||||||
</span>
|
</span>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if(this.props.filterParams.length) {
|
||||||
return (
|
return (
|
||||||
<DropdownButton
|
<DropdownButton
|
||||||
pullRight={true}
|
pullRight={true}
|
||||||
@ -137,6 +138,9 @@ let PieceListToolbarFilterWidget = React.createClass({
|
|||||||
})}
|
})}
|
||||||
</DropdownButton>
|
</DropdownButton>
|
||||||
);
|
);
|
||||||
|
} else {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user