CEC-6085 - Add search bar to TREX logs

This commit is contained in:
padamsen_fisker
2024-07-18 13:09:10 -04:00
parent f0ae149fab
commit 10402d34bf
6 changed files with 700 additions and 54 deletions

View File

@@ -175,7 +175,7 @@ const vehiclesAPI = {
getCANSignals: async (vin, vehicle) => {
return signals;
},
getTRexLogs: async (vin, date, offset, count, direction, token) => {
getTRexLogs: async (vin, search, date, offset, count, direction, token) => {
return trexLogs;
},
getVersionLog: async (vin) => ({

View File

@@ -224,8 +224,8 @@ const vehiclesAPI = {
.catch(errorHandler);
},
getTRexLogs: async (vin, date, offset, count, direction, token, controller) =>
fetch(`${API_ENDPOINT}/vehicle/${vin}/trex-logs?date=${date}&offset=${offset}&count=${count}&direction=${direction}`, {
getTRexLogs: async (vin, search, date, offset, count, direction, token, controller) =>
fetch(`${API_ENDPOINT}/vehicle/${vin}/trex-logs?date=${date}&offset=${offset}&count=${count}&direction=${direction}&search=${search}`, {
method: "GET",
headers: Object.assign(
{ "Content-Type": "application/json" },