Added cookie option to assets Bootstrap Table to save the state of the table.

This commit is contained in:
Ivan Nieto Vivanco 2021-07-08 14:05:40 -05:00
parent 11d9b1ba45
commit d2e94dfc1c

View file

@ -991,7 +991,8 @@
"ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]
}'
data-url="{{ route('api.maintenances.index', array('asset_id' => $asset->id)) }}"
data-cookie-id-table="assetMaintenancesTable">
data-cookie-id-table="assetMaintenancesTable"
data-cookie="true">
</table>
</div> <!-- /.col-md-12 -->
</div> <!-- /.row -->
@ -1019,7 +1020,8 @@
}'
data-url="{{ route('api.activity.index', ['item_id' => $asset->id, 'item_type' => 'asset']) }}"
data-cookie-id-table="assetHistory">
data-cookie-id-table="assetHistory"
data-cookie="true">
<thead>
<tr>
<th data-visible="true" style="width: 40px;" class="hidden-xs">Icon</th>