Camera calibration step in wizard skip until calibrated.

This commit is contained in:
Julian Stirling 2025-11-04 20:31:16 +00:00
parent e1172248b0
commit 1f22346ce6
2 changed files with 18 additions and 3 deletions

View file

@ -6,7 +6,11 @@
<template #below-stream> <template #below-stream>
<div class="action-button-container"> <div class="action-button-container">
<cameraCalibrationSettings :show-extra-settings="false" :camera-uri="cameraUri" /> <cameraCalibrationSettings
:show-extra-settings="false"
:camera-uri="cameraUri"
@actionFinished="checkCalibrationState"
/>
</div> </div>
</template> </template>
</stepTemplateWithStream> </stepTemplateWithStream>
@ -29,6 +33,17 @@ export default {
return `${this.$store.getters.baseUri}/camera/`; return `${this.$store.getters.baseUri}/camera/`;
}, },
}, },
mounted() {
this.checkCalibrationState();
},
methods: {
async checkCalibrationState() {
const needsCal = await this.readThingProperty("camera", "calibration_required");
this.$emit("awaiting-user", needsCal);
},
},
}; };
</script> </script>

View file

@ -6,7 +6,7 @@
:key="'primary_cal' + index" :key="'primary_cal' + index"
class="uk-child-width-expand" class="uk-child-width-expand"
> >
<server-specified-action-button :action-data="action" /> <server-specified-action-button :action-data="action" @finished="$emit('actionFinished')" />
</div> </div>
<div v-if="showExtraSettings"> <div v-if="showExtraSettings">
<div <div
@ -14,7 +14,7 @@
:key="'secondary_cal' + index" :key="'secondary_cal' + index"
class="uk-child-width-expand" class="uk-child-width-expand"
> >
<server-specified-action-button :action-data="action" /> <server-specified-action-button :action-data="action" @finished="$emit('actionFinished')" />
</div> </div>
</div> </div>
</div> </div>