Apply suggestions from code review of branch flash-led-sim

Co-authored-by: Julian Stirling <julian@julianstirling.co.uk>
This commit is contained in:
Joe Knapper 2026-02-11 10:19:19 +00:00
parent f05cb396c8
commit 676d34842a
4 changed files with 16 additions and 7 deletions

View file

@ -13,7 +13,7 @@
{{ $store.state.origin }}
</div>
<action-button
v-if="stageType"
v-if="illuminationType"
thing="illumination"
action="flash"
submit-label="Flash Illumination"
@ -46,6 +46,13 @@
{{ stageType }}
</div>
</div>
<div v-if="illuminationType">
<b>Illumination:</b>
<br />
<div>
{{ illuminationType }}
</div>
</div>
<hr />
</div>
@ -77,6 +84,9 @@ export default {
stageType() {
return this.thingAvailable("stage") ? this.thingDescription("stage").title : undefined;
},
illuminationType() {
return this.thingAvailable("illumination") ? this.thingDescription("illumination").title : undefined;
},
},
async mounted() {