Commit 2ae93e93 authored by schneider210's avatar schneider210
Browse files

improvement: hide the reset button when TIDO is configured to not show any toggle at all

parent 7dfaddc5
Pipeline #186940 passed with stages
in 6 minutes and 19 seconds
......@@ -25,6 +25,7 @@
</div>
<q-item
v-if="toggleCounter"
v-close-popup
clickable
flat
......@@ -68,6 +69,12 @@ export default {
default: () => [],
},
},
computed: {
toggleCounter() {
const toggleCount = this.panels.filter((panel) => panel.toggle === true);
return toggleCount.length > 0;
},
},
created() {
// mount the fonts
this.fasCheckCircle = fasCheckCircle;
......
......@@ -76,7 +76,7 @@
"connector": [4],
"panel_label": "Text",
"show": true,
"toggle": false
"toggle": true
},
{
"connector": [2],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment