save inspectionPoints

This commit is contained in:
Julian Krauser 2025-07-09 16:01:15 +02:00
parent eb4d338583
commit 23bdde5fc2
13 changed files with 407 additions and 72 deletions

View file

@ -1,10 +1,11 @@
import { useInspectionPlanStore } from "@/stores/admin/unit/inspectionPlan/inspectionPlan";
import { useInspectionPointStore } from "../../stores/admin/unit/inspectionPlan/inspectionPoint";
export async function setInspectionPlanId(to: any, from: any, next: any) {
const InspectionPlanStore = useInspectionPlanStore();
InspectionPlanStore.activeInspectionPlan = to.params?.inspectionPlanId ?? null;
//useXYStore().$reset();
useInspectionPointStore().$reset();
next();
}
@ -14,7 +15,7 @@ export async function resetInspectionPlanStores(to: any, from: any, next: any) {
InspectionPlanStore.activeInspectionPlan = null;
InspectionPlanStore.activeInspectionPlanObj = null;
//useXYStore().$reset();
useInspectionPointStore().$reset();
next();
}