1
0
mirror of https://github.com/ascribe/onion.git synced 2025-01-06 11:45:40 +01:00

Restore toolbar

This commit is contained in:
vrde 2015-07-14 18:54:47 +02:00
parent ce46f7c886
commit dffcbc1191

View File

@ -62,16 +62,6 @@ let PieceList = React.createClass({
this.state.orderAsc);
},
getPieceListToolbar() {
if(this.state.pieceListCount > 10) {
return (
<PieceListToolbar
className="ascribe-piece-list-toolbar"
searchFor={this.searchFor} />
);
}
},
getPagination() {
let currentPage = parseInt(this.getQuery().page, 10) || 1;
let totalPages = Math.ceil(this.state.pieceListCount / this.state.pageSize);
@ -101,7 +91,9 @@ let PieceList = React.createClass({
return (
<div>
{this.getPieceListToolbar()}
<PieceListToolbar
className="ascribe-piece-list-toolbar"
searchFor={this.searchFor} />
<PieceListBulkModal className="ascribe-piece-list-bulk-modal" />
<AccordionList
className="ascribe-accordion-list"