1
0
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:
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>
);
if(this.props.filterParams.length) {
return (
<DropdownButton
pullRight={true}
@ -137,6 +138,9 @@ let PieceListToolbarFilterWidget = React.createClass({
})}
</DropdownButton>
);
} else {
return null;
}
}
});