CEC-3519 Add car version history (#260)

* CEC-3519 Add car version history
CEC-3455 Delete button is icon and remove column
CEC-3496 Fix Issue delete

* smell

* Remove tab from issues details page

* Fix date format
This commit is contained in:
John Wu
2023-01-13 15:29:31 -08:00
committed by GitHub
parent 19ad379168
commit c5a5839d41
16 changed files with 889 additions and 365 deletions

View File

@@ -233,6 +233,17 @@ export const VehicleProvider = ({ children }) => {
}
}
const getVersionLog = async (search, token) => {
try {
setBusy(true);
const result = await api.getVersionLog(search, token);
if (result.error) throw new Error(`Get version log error. ${result.message}`);
return result;
} finally {
setBusy(false);
}
};
return (
<VehicleContext.Provider
value={{
@@ -258,6 +269,7 @@ export const VehicleProvider = ({ children }) => {
sendCommand,
updateVehicle,
getFleets,
getVersionLog,
}}
>
{children}