Only show autofocus and position controls when Things are available
This commit is contained in:
parent
f19d6681c4
commit
d899e1ba75
1 changed files with 11 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<div id="paneControl" class="uk-padding-small">
|
||||
<positionControl />
|
||||
<autofocusControl />
|
||||
<positionControl v-if="stageAvailable" />
|
||||
<autofocusControl v-if="autofocusAvailable" />
|
||||
<p>Image Capture</p>
|
||||
|
||||
<div class="uk-margin">
|
||||
|
|
@ -45,6 +45,15 @@ export default {
|
|||
autofocusControl,
|
||||
},
|
||||
|
||||
computed: {
|
||||
stageAvailable() {
|
||||
return this.thingAvailable("stage");
|
||||
},
|
||||
autofocusAvailable() {
|
||||
return this.thingAvailable("autofocus");
|
||||
},
|
||||
},
|
||||
|
||||
methods: {
|
||||
handleCaptureResponse: async function (response) {
|
||||
// Retrieve the captured image and save it
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue