Camera calibration step in wizard skip until calibrated.
This commit is contained in:
parent
e1172248b0
commit
1f22346ce6
2 changed files with 18 additions and 3 deletions
|
|
@ -6,7 +6,11 @@
|
|||
|
||||
<template #below-stream>
|
||||
<div class="action-button-container">
|
||||
<cameraCalibrationSettings :show-extra-settings="false" :camera-uri="cameraUri" />
|
||||
<cameraCalibrationSettings
|
||||
:show-extra-settings="false"
|
||||
:camera-uri="cameraUri"
|
||||
@actionFinished="checkCalibrationState"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
</stepTemplateWithStream>
|
||||
|
|
@ -29,6 +33,17 @@ export default {
|
|||
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>
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
:key="'primary_cal' + index"
|
||||
class="uk-child-width-expand"
|
||||
>
|
||||
<server-specified-action-button :action-data="action" />
|
||||
<server-specified-action-button :action-data="action" @finished="$emit('actionFinished')" />
|
||||
</div>
|
||||
<div v-if="showExtraSettings">
|
||||
<div
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
:key="'secondary_cal' + index"
|
||||
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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue