mirror of
https://github.com/Spythere/station-manager-2.0.git
synced 2026-05-03 05:28: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,
|
||||
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[],
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user