If nopages is passed, hide page numbers

This seems weird since we’re checking for a negative, but there are only a few spots where we wouldn’t want page numbers, namely the dashboard sruff
This commit is contained in:
snipe 2018-01-16 07:37:06 -08:00
parent 1d3472b5c4
commit aac379daeb

View file

@ -50,8 +50,10 @@
paginationVAlign: 'both',
sidePagination: '{{ (isset($clientSearch)) ? 'client' : 'server' }}',
sortable: true,
@if (!isset($nopages))
pageSize: 20,
pagination: true,
@endif
cookie: true,
cookieExpire: '2y',
cookieIdTable: '{{ Route::currentRouteName() }}',