LP1845047 Ignore grid page size pref when paging disabled
authorBill Erickson <berickxx@gmail.com>
Mon, 23 Sep 2019 21:17:13 +0000 (17:17 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Tue, 18 Aug 2020 21:21:45 +0000 (17:21 -0400)
Ignore any saved value for page size on grids configured with paging
disabled.  Such grids are required to show all rows or any data past the
first page would be innaccessible.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Elaine Hardy <ehardy@georgialibraries.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/eg2/src/app/share/grid/grid.ts

index e885fb7..a71a7e4 100644 (file)
@@ -569,7 +569,7 @@ export class GridContext {
             let columns = [];
             if (conf) {
                 columns = conf.columns;
-                if (conf.limit) {
+                if (conf.limit && !this.disablePaging) {
                     this.pager.limit = conf.limit;
                 }
             }