mirror of
https://github.com/ascribe/onion.git
synced 2025-01-03 10:25:08 +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>
|
||||
);
|
||||
|
||||
if(this.props.filterParams.length) {
|
||||
return (
|
||||
<DropdownButton
|
||||
pullRight={true}
|
||||
@ -137,6 +138,9 @@ let PieceListToolbarFilterWidget = React.createClass({
|
||||
})}
|
||||
</DropdownButton>
|
||||
);
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user