More tidying up to use new thing property functions

This commit is contained in:
Richard Bowman 2023-12-01 01:45:45 +00:00
parent 89cf58e8c7
commit f97dcb6abc
2 changed files with 6 additions and 12 deletions

View file

@ -15,19 +15,19 @@
<PropertyControl
label="Exposure time"
property-name="exposure_time"
:thing-description="thingDescription"
thing-name="camera"
:read-back-delay="1000"
/>
<PropertyControl
label="Analogue gain"
property-name="analogue_gain"
:thing-description="thingDescription"
thing-name="camera"
:read-back-delay="1000"
/>
<PropertyControl
label="Colour gains"
property-name="colour_gains"
:thing-description="thingDescription"
thing-name="camera"
:read-back-delay="1000"
/>
</div>
@ -38,13 +38,13 @@
<PropertyControl
label="MJPEG stream bit rate"
property-name="mjpeg_bitrate"
:thing-description="thingDescription"
thing-name="camera"
:read-back-delay="100"
/>
<PropertyControl
label="MJPEG stream resolution"
property-name="stream_resolution"
:thing-description="thingDescription"
thing-name="camera"
:read-back-delay="100"
/>
</div>
@ -144,9 +144,6 @@ export default {
cameraUri: function() {
return `${this.$store.getters.baseUri}/camera/`;
},
thingDescription: function() {
return this.$store.getters["wot/thingDescription"]("camera");
}
}
};
</script>

View file

@ -19,10 +19,7 @@ export default {
computed: {
stageType: function() {
return this.thingDescription.title;
},
thingDescription: function() {
return this.$store.getters["wot/thingDescription"]("stage");
return this.thingDescription("stage").title;
}
}
};