mirror of
https://github.com/Spythere/station-manager-2.0.git
synced 2026-05-03 13:38:13 +00:00
chore: added props remembering from the last vehicle & vehicle group update
This commit is contained in:
@@ -15,6 +15,7 @@ import {
|
|||||||
ICreateVehicleGroupBody,
|
ICreateVehicleGroupBody,
|
||||||
RemoveVehicleGroupAPIResponse,
|
RemoveVehicleGroupAPIResponse,
|
||||||
IVehicleGroupAPI,
|
IVehicleGroupAPI,
|
||||||
|
IVehicleGroup,
|
||||||
} from '../types/vehicles.types';
|
} from '../types/vehicles.types';
|
||||||
import { LoadingState } from '../types/common.types';
|
import { LoadingState } from '../types/common.types';
|
||||||
|
|
||||||
@@ -26,6 +27,9 @@ export const useVehiclesStore = defineStore('vehiclesStore', {
|
|||||||
selectedVehicleId: -1,
|
selectedVehicleId: -1,
|
||||||
selectedVehicleGroupId: -1,
|
selectedVehicleGroupId: -1,
|
||||||
|
|
||||||
|
lastVehicleUpdateProps: {} as Partial<IVehicle>,
|
||||||
|
lastVehicleGroupUpdateProps: {} as Partial<IVehicleGroup>,
|
||||||
|
|
||||||
vehiclesTable: [] as IVehicleTableRow[],
|
vehiclesTable: [] as IVehicleTableRow[],
|
||||||
vehicleGroupsTable: [] as IVehicleGroupTableRow[],
|
vehicleGroupsTable: [] as IVehicleGroupTableRow[],
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user