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

View file

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