Customers index fix reset sort columns

This commit is contained in:
Jérémy Munsch 2021-10-26 16:23:06 +02:00
parent 20148d7bae
commit 468a984d37
No known key found for this signature in database
GPG key ID: 55196BEE445F6049
2 changed files with 1 additions and 6 deletions

View file

@ -71,6 +71,6 @@
</th>
<th scope="col">
@if(session("crud.$modelTable.sort_way") and session("crud.$modelTable.sort_col"))
<a href="{{ request()->fullUrlWithQuery(['rst' => 'true','sort_col' => null, 'sort_way' => null]) }}" class="btn btn-small btn-danger">&#9003;</a>
<a href="{{ _genUrl(['rst' => 'true','sort_col' => null, 'sort_way' => null]) }}" class="btn btn-small btn-danger">&#9003;</a>
@endif
</th>

View file

@ -43,11 +43,6 @@
<thead class="thead-dark">
<tr>
@include('customer.index-tableHeaders')
<th scope="col">
@if(session("crud.$modelTable.sort_way") and session("crud.$modelTable.sort_col"))
<a href="{{ request()->fullUrlWithQuery(['rst' => 'true', 'sort_col' => null, 'sort_way' => null]) }}" class="btn btn-small btn-danger">&#9003;</a>
@endif
</th>
</tr>
</thead>
<tbody>