CEC-5715 - Show which ECUs need to be updated for next flashpack number
This commit is contained in:
@@ -372,9 +372,23 @@ export const VehicleProvider = ({ children }) => {
|
||||
} finally {
|
||||
setBusy(false);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
const getCarFlashpackVersionInfo = async (vin, token) => {
|
||||
try {
|
||||
setBusy(true);
|
||||
|
||||
const result = await api.getCarFlashpackVersionInfo(vin, token);
|
||||
if (result.error) {
|
||||
throw new Error(`Get car flashpack version info error. ${result.message}`);
|
||||
}
|
||||
|
||||
return result;
|
||||
} finally {
|
||||
setBusy(false);
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
<VehicleContext.Provider
|
||||
value={{
|
||||
@@ -412,6 +426,7 @@ export const VehicleProvider = ({ children }) => {
|
||||
getFlashpackECUMappings,
|
||||
addFlashpackVersion,
|
||||
deleteFlashpackVersion,
|
||||
getCarFlashpackVersionInfo,
|
||||
}}
|
||||
>
|
||||
{children}
|
||||
|
||||
Reference in New Issue
Block a user