* CEC-4674: add bulk cancel updates (#386)

* add bulk cancel updates

* add permission check

* remove unused import

* make trigger multi-line

* CEC-4546: add ecu search (#391)

* CEC-4546: add ecu search

* CEC-4546: add checkbox to filter current

* add column

* set initial state to true for unique

* CEC-4745: add vins nullcheck for bulk actions bulk actions (#395)

* nullcheck bulk actions

* remove unused var

* update snapshots

* CEC-4772 - carsconnected takes VINs in req body

---------

Co-authored-by: Paul Adamsen <117673433+pauladamseniii@users.noreply.github.com>
Co-authored-by: Tristan Timblin <ttimblin@fiskerinc.com>
This commit is contained in:
Rafi Greenberg
2023-07-26 11:01:58 -08:00
committed by GitHub
parent a53a144411
commit 01d13a5cac
8 changed files with 192 additions and 12 deletions

View File

@@ -113,7 +113,7 @@ export const FleetProvider = ({ children }) => {
throw new Error(`Get fleet vehicles error. ${result.message}`);
}
const connectionsResult = await vehiclesAPI.getConnections(result.data, token)
const connectionsResult = await vehiclesAPI.getConnections({ "VINs": result.data }, token)
if (result.error) {
setFleetVehicles([])
throw new Error(`Get vehicles connections error. ${result.message}`);

View File

@@ -35,7 +35,7 @@ export const VehicleProvider = ({ children }) => {
try {
if (cars.length === 0) return;
const vins = cars.map((car) => car.vin);
const result = await api.getConnections(vins, token);
const result = await api.getConnections({ "VINs": vins }, token);
if (result.error) {
throw new Error(`Add connections error. ${result.message}`);
@@ -80,7 +80,7 @@ export const VehicleProvider = ({ children }) => {
const getConnections = async (vins, token) => {
try {
setBusy(true);
const result = await api.getConnections(vins, token);
const result = await api.getConnections({ "VINs": vins }, token);
if (result.error)
throw new Error(`Get connections error. ${result.message}`);
return result;