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>
|
<template>
|
||||||
<div id="paneControl" class="uk-padding-small">
|
<div id="paneControl" class="uk-padding-small">
|
||||||
<positionControl />
|
<positionControl v-if="stageAvailable" />
|
||||||
<autofocusControl />
|
<autofocusControl v-if="autofocusAvailable" />
|
||||||
<p>Image Capture</p>
|
<p>Image Capture</p>
|
||||||
|
|
||||||
<div class="uk-margin">
|
<div class="uk-margin">
|
||||||
|
|
@ -45,6 +45,15 @@ export default {
|
||||||
autofocusControl,
|
autofocusControl,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
computed: {
|
||||||
|
stageAvailable() {
|
||||||
|
return this.thingAvailable("stage");
|
||||||
|
},
|
||||||
|
autofocusAvailable() {
|
||||||
|
return this.thingAvailable("autofocus");
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
handleCaptureResponse: async function (response) {
|
handleCaptureResponse: async function (response) {
|
||||||
// Retrieve the captured image and save it
|
// Retrieve the captured image and save it
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue