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:
@@ -30,7 +30,6 @@
|
||||
"trip-list",
|
||||
[
|
||||
{"key": "", "label": "", "sortable": false, "class": "text-center"},
|
||||
{"key": "id", "label": "ID", "sortable": false},
|
||||
{"key": "started", "label": "Started", "sortable": true},
|
||||
{"key": "distance", "label": "km", "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.batchDeleteUrl = '/api/v1/portal/trips/delete';</script>
|
||||
<script>document.getElementById('trip-list').dataset.showId = '1';</script>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user