diff --git a/photon-client/src/components/cameras/CameraCalibrationInfoCard.vue b/photon-client/src/components/cameras/CameraCalibrationInfoCard.vue
index b92734fde..cb5b02b27 100644
--- a/photon-client/src/components/cameras/CameraCalibrationInfoCard.vue
+++ b/photon-client/src/components/cameras/CameraCalibrationInfoCard.vue
@@ -5,6 +5,7 @@ import { useStateStore } from "@/stores/StateStore";
import { computed, inject, ref } from "vue";
import { axiosPost, getResolutionString, parseJsonFile } from "@/lib/PhotonUtils";
import { useTheme } from "vuetify";
+import PvDeleteModal from "@/components/common/pv-delete-modal.vue";
const theme = useTheme();
@@ -12,7 +13,7 @@ const props = defineProps<{
videoFormat: VideoFormat;
}>();
-const confirmRemoveDialog = ref({ show: false, vf: {} as VideoFormat });
+const confirmRemoveDialog = ref({ show: false, vf: props.videoFormat as VideoFormat });
const removeCalibration = (vf: VideoFormat) => {
axiosPost("/calibration/remove", "delete a camera calibration", {
@@ -20,8 +21,6 @@ const removeCalibration = (vf: VideoFormat) => {
width: vf.resolution.width,
height: vf.resolution.height
});
-
- confirmRemoveDialog.value.show = false;
};
const exportCalibration = ref();
@@ -110,17 +109,6 @@ const calibrationImageURL = (index: number) =>
Calibration Details
- (confirmRemoveDialog = { show: true, vf: props.videoFormat })"
- >
- mdi-delete
- Delete
-
/>
:href="exportCalibrationURL"
target="_blank"
/>
+ (confirmRemoveDialog = { show: true, vf: props.videoFormat })"
+ >
+ mdi-delete
+ Delete
+
-
-
- Delete Calibration
-
- Are you sure you want to delete the calibration for {{ confirmRemoveDialog.vf.resolution.width }}x{{
- confirmRemoveDialog.vf.resolution.height
- }}? This cannot be undone.
-
- (confirmRemoveDialog.show = false)"
- >
- Cancel
-
-
- Delete
-
-
-
-
-
+