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:
parent
1d3472b5c4
commit
aac379daeb
1 changed files with 3 additions and 1 deletions
|
@ -50,8 +50,10 @@
|
||||||
paginationVAlign: 'both',
|
paginationVAlign: 'both',
|
||||||
sidePagination: '{{ (isset($clientSearch)) ? 'client' : 'server' }}',
|
sidePagination: '{{ (isset($clientSearch)) ? 'client' : 'server' }}',
|
||||||
sortable: true,
|
sortable: true,
|
||||||
|
@if (!isset($nopages))
|
||||||
pageSize: 20,
|
pageSize: 20,
|
||||||
pagination: true,
|
pagination: true,
|
||||||
|
@endif
|
||||||
cookie: true,
|
cookie: true,
|
||||||
cookieExpire: '2y',
|
cookieExpire: '2y',
|
||||||
cookieIdTable: '{{ Route::currentRouteName() }}',
|
cookieIdTable: '{{ Route::currentRouteName() }}',
|
||||||
|
@ -72,7 +74,7 @@
|
||||||
paginationSwitchDown: 'fa-caret-square-o-down',
|
paginationSwitchDown: 'fa-caret-square-o-down',
|
||||||
paginationSwitchUp: 'fa-caret-square-o-up',
|
paginationSwitchUp: 'fa-caret-square-o-up',
|
||||||
columns: 'fa-columns',
|
columns: 'fa-columns',
|
||||||
@if( isset($multiSort))
|
@if (isset($multiSort))
|
||||||
sort: 'fa fa-sort-amount-desc',
|
sort: 'fa fa-sort-amount-desc',
|
||||||
plus: 'fa fa-plus',
|
plus: 'fa fa-plus',
|
||||||
minus: 'fa fa-minus',
|
minus: 'fa fa-minus',
|
||||||
|
|
Loading…
Add table
Reference in a new issue