diff --git a/photon-client/src/components/cameras/CameraCalibrationCard.vue b/photon-client/src/components/cameras/CameraCalibrationCard.vue index 57057da537..5febbbbebd 100644 --- a/photon-client/src/components/cameras/CameraCalibrationCard.vue +++ b/photon-client/src/components/cameras/CameraCalibrationCard.vue @@ -157,7 +157,10 @@ const downloadCalibBoard = () => { doc.save(`calibrationTarget-${CalibrationBoardTypes[boardType.value]}.pdf`); }; -const isCalibrating = ref(false); +const isCalibrating = computed( + () => useCameraSettingsStore().currentCameraSettings.currentPipelineIndex === WebsocketPipelineType.Calib3d +); + const startCalibration = () => { useCameraSettingsStore().startPnPCalibration({ squareSizeIn: squareSizeIn.value, @@ -170,13 +173,15 @@ const startCalibration = () => { }); // The Start PnP method already handles updating the backend so only a store update is required useCameraSettingsStore().currentCameraSettings.currentPipelineIndex = WebsocketPipelineType.Calib3d; - isCalibrating.value = true; + // isCalibrating.value = true; calibCanceled.value = false; }; const showCalibEndDialog = ref(false); const calibCanceled = ref(false); const calibSuccess = ref(undefined); const endCalibration = () => { + calibSuccess.value = undefined; + if (!useStateStore().calibrationData.hasEnoughImages) { calibCanceled.value = true; } @@ -192,7 +197,8 @@ const endCalibration = () => { calibSuccess.value = false; }) .finally(() => { - isCalibrating.value = false; + // isCalibrating.value = false; + // backend deals with this for us }); }; @@ -245,6 +251,7 @@ const setSelectedVideoFormat = (format: VideoFormat) => { Configure New Calibration + { process. -