fixed paging on subcategory browsing page
This commit is contained in:
@@ -23,6 +23,9 @@ var BySubCategory = React.createClass({
|
||||
removeAppliedFilter: function(name) {
|
||||
BySubCategoryActions.removeAppliedFilter(name);
|
||||
},
|
||||
onChangePage: function(page) {
|
||||
BySubCategoryActions.changePage(page);
|
||||
},
|
||||
render : function() {
|
||||
|
||||
return (<div>
|
||||
@@ -32,14 +35,17 @@ var BySubCategory = React.createClass({
|
||||
</div>
|
||||
<div classname='col-md-10'>
|
||||
|
||||
<h2>
|
||||
Podkategorija {this.state.subCategory.get('name')}
|
||||
</h2>
|
||||
|
||||
Number of items in this subcategory: {this.state.items.length}
|
||||
<div>Number of items in this subcategory: {this.state.items.length}</div>
|
||||
<div>total count : {this.state.items.totalCount}</div>
|
||||
<div>
|
||||
<AppliedFiltersList filters={this.appliedSubCategoryFiltersArray()} onRemove={this.removeAppliedFilter} />
|
||||
|
||||
</div>
|
||||
<ItemList items={this.state.items} paginationEnabled={true} total={this.state.items.totalCount} limit={this.state.pagination.limit} onPageChange={this.changePage} currentOffset={this.state.pagination.offset} />
|
||||
<ItemList items={this.state.items} paginationEnabled={true} total={this.state.items.totalCount} limit={this.state.pagination.limit} onPageChange={this.onChangePage} currentOffset={this.state.pagination.offset} />
|
||||
</div>
|
||||
</div>)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user