style: drop the ID column from the server trip table to match the Pi

The portal's trip list had an extra 'ID' column the Pi's list doesn't
have. Remove it (and its showId data attribute) so both tables render the
same columns: checkbox, Started, km, Time, Max, Odometer, delete.
This commit is contained in:
Mathieu Moran
2026-08-15 17:02:41 -04:00
parent ff49609f2a
commit dcca46ec68
-2
View File
@@ -30,7 +30,6 @@
"trip-list", "trip-list",
[ [
{"key": "", "label": "", "sortable": false, "class": "text-center"}, {"key": "", "label": "", "sortable": false, "class": "text-center"},
{"key": "id", "label": "ID", "sortable": false},
{"key": "started", "label": "Started", "sortable": true}, {"key": "started", "label": "Started", "sortable": true},
{"key": "distance", "label": "km", "sortable": true}, {"key": "distance", "label": "km", "sortable": true},
{"key": "duration", "label": "Time", "sortable": true}, {"key": "duration", "label": "Time", "sortable": true},
@@ -44,7 +43,6 @@
) }} ) }}
<script>document.getElementById('trip-list').dataset.deleteUrl = '/api/v1/portal/trip/';</script> <script>document.getElementById('trip-list').dataset.deleteUrl = '/api/v1/portal/trip/';</script>
<script>document.getElementById('trip-list').dataset.batchDeleteUrl = '/api/v1/portal/trips/delete';</script> <script>document.getElementById('trip-list').dataset.batchDeleteUrl = '/api/v1/portal/trips/delete';</script>
<script>document.getElementById('trip-list').dataset.showId = '1';</script>
</div> </div>
</div> </div>
</div> </div>