chore: added props remembering from the last vehicle & vehicle group update

This commit is contained in:
2025-12-01 16:36:18 +01:00
parent 53ee601633
commit 55a7862e66
+4
View File
@@ -15,6 +15,7 @@ import {
ICreateVehicleGroupBody,
RemoveVehicleGroupAPIResponse,
IVehicleGroupAPI,
IVehicleGroup,
} from '../types/vehicles.types';
import { LoadingState } from '../types/common.types';
@@ -26,6 +27,9 @@ export const useVehiclesStore = defineStore('vehiclesStore', {
selectedVehicleId: -1,
selectedVehicleGroupId: -1,
lastVehicleUpdateProps: {} as Partial<IVehicle>,
lastVehicleGroupUpdateProps: {} as Partial<IVehicleGroup>,
vehiclesTable: [] as IVehicleTableRow[],
vehicleGroupsTable: [] as IVehicleGroupTableRow[],
}),