|
@ -59,6 +59,7 @@ export class CatalogComponent implements OnInit { |
|
|
|
|
|
|
|
|
this.brandSelected = this.brandSelected && this.brandSelected.toString() != "null" ? this.brandSelected : null; |
|
|
this.brandSelected = this.brandSelected && this.brandSelected.toString() != "null" ? this.brandSelected : null; |
|
|
this.typeSelected = this.typeSelected && this.typeSelected.toString() != "null" ? this.typeSelected : null; |
|
|
this.typeSelected = this.typeSelected && this.typeSelected.toString() != "null" ? this.typeSelected : null; |
|
|
|
|
|
this.paginationInfo.actualPage = 0; |
|
|
this.getCatalog(this.paginationInfo.itemsPage, this.paginationInfo.actualPage, this.brandSelected, this.typeSelected); |
|
|
this.getCatalog(this.paginationInfo.itemsPage, this.paginationInfo.actualPage, this.brandSelected, this.typeSelected); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -95,7 +96,7 @@ export class CatalogComponent implements OnInit { |
|
|
itemsPage : catalog.pageSize, |
|
|
itemsPage : catalog.pageSize, |
|
|
totalItems : catalog.count, |
|
|
totalItems : catalog.count, |
|
|
totalPages: Math.ceil(catalog.count / catalog.pageSize), |
|
|
totalPages: Math.ceil(catalog.count / catalog.pageSize), |
|
|
items: catalog.pageSize |
|
|
|
|
|
|
|
|
items: catalog.data.length |
|
|
}; |
|
|
}; |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|