Conditionally render tabs based on available Things
This commit is contained in:
parent
0b0483f4c7
commit
f35c96d653
4 changed files with 53 additions and 40 deletions
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<div id="paneControl" class="uk-padding-small">
|
||||
<div v-if="setPosition">
|
||||
<div v-if="stageAvailable">
|
||||
<ul uk-accordion="multiple: true">
|
||||
<li>
|
||||
<a class="uk-accordion-title" href="#">Configure</a>
|
||||
|
|
@ -167,6 +167,9 @@ export default {
|
|||
},
|
||||
|
||||
computed: {
|
||||
stageAvailable() {
|
||||
return this.thingAvailable("stage");
|
||||
},
|
||||
// Note that as stepSize and invert are set based on internals we can use
|
||||
// get() and set() to interact with the store. Instead use a deep watcher to
|
||||
// update the store (see ``watch:`` below)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue