1
0
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:
Tim Daubenschütz 2015-12-08 16:49:06 +01:00
parent b8c58aa900
commit d035f1e41c

View File

@ -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;
}
} }
}); });