Rename DefaultPageSize => PagerSize

This was recently introduced. so no breaking change.

The thing is:

* We do not commonly use the prefix Default* even if it can be overridden in the templates.
* PagerSize makes more sense and is also the term used in the code.
This commit is contained in:
Bjørn Erik Pedersen
2024-06-08 22:28:02 +02:00
parent 8cf94aea73
commit 9f22bc4414
5 changed files with 13 additions and 13 deletions

View File

@@ -263,7 +263,7 @@ func splitPageGroups(pageGroups PagesGroup, size int) []paginatedElement {
func ResolvePagerSize(conf config.AllProvider, options ...any) (int, error) {
if len(options) == 0 {
return conf.Pagination().DefaultPageSize, nil
return conf.Pagination().PagerSize, nil
}
if len(options) > 1 {