From a44af9f3aa1dff44862d2e01ead8698711339954 Mon Sep 17 00:00:00 2001 From: Ghislain Beaulac Date: Thu, 7 Nov 2019 18:16:52 -0500 Subject: [PATCH 1/7] fix(pagination): never display page 0, minimum should be page 1 - if we filter the data and an empty dataset is returned, we should display "Page 1 of 1", not "Page 0 of 0". - Also instead of "0-0 of 0 items", we should hide the "0-0" and only display "0 items" - update Cypress E2E test --- .../slick-pagination.component.html | 26 ++-- .../services/pagination.service.ts | 16 +-- .../angular-slickgrid/styles/_variables.scss | 2 +- test/cypress/integration/example5.spec.js | 126 ++++++++++++++++++ 4 files changed, 151 insertions(+), 19 deletions(-) diff --git a/src/app/modules/angular-slickgrid/components/slick-pagination.component.html b/src/app/modules/angular-slickgrid/components/slick-pagination.component.html index 5fabeb440..c79554cd1 100644 --- a/src/app/modules/angular-slickgrid/components/slick-pagination.component.html +++ b/src/app/modules/angular-slickgrid/components/slick-pagination.component.html @@ -4,12 +4,12 @@ @@ -17,23 +17,23 @@
{{textPage}} - - {{textOf}} {{pager?.pageCount}} + + {{textOf}} {{pager?.pageCount}}