mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-12 16:44:08 -08:00
Use the max_results env value in the paginator
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
3e2fe10480
commit
fcb81b9505
|
@ -51,7 +51,7 @@
|
||||||
paginationLastText: "{{ trans('general.last') }}",
|
paginationLastText: "{{ trans('general.last') }}",
|
||||||
paginationPreText: "{{ trans('general.previous') }}",
|
paginationPreText: "{{ trans('general.previous') }}",
|
||||||
paginationNextText: "{{ trans('general.next') }}",
|
paginationNextText: "{{ trans('general.next') }}",
|
||||||
pageList: ['10','20', '30','50','100','150','200', '500', '1000'],
|
pageList: ['10','20', '30','50','100','150','200', '500'{!! ((config('app.max_results') > 500) ? ",'".config('app.max_results')."'" : '') !!}],
|
||||||
pageSize: {{ (($snipeSettings->per_page!='') && ($snipeSettings->per_page > 0)) ? $snipeSettings->per_page : 20 }},
|
pageSize: {{ (($snipeSettings->per_page!='') && ($snipeSettings->per_page > 0)) ? $snipeSettings->per_page : 20 }},
|
||||||
paginationVAlign: 'both',
|
paginationVAlign: 'both',
|
||||||
queryParams: function (params) {
|
queryParams: function (params) {
|
||||||
|
|
Loading…
Reference in a new issue