Use the max_results env value in the paginator

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2022-03-07 18:39:39 -08:00
parent 3e2fe10480
commit fcb81b9505

View file

@ -51,7 +51,7 @@
paginationLastText: "{{ trans('general.last') }}",
paginationPreText: "{{ trans('general.previous') }}",
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 }},
paginationVAlign: 'both',
queryParams: function (params) {