diff --git a/ui/src/components/ConfigView.vue b/ui/src/components/ConfigView.vue index 60221f7..7d091bd 100644 --- a/ui/src/components/ConfigView.vue +++ b/ui/src/components/ConfigView.vue @@ -1,5 +1,10 @@ @@ -28,11 +33,20 @@ import { Options, Vue } from "vue-class-component"; required: false, default: "", }, + ready: Boolean, }, + emits: ["open", "close"], }) export default class extends Vue { - public is_open = false; public header!: string; + public ready!: boolean; + + public is_open = false; + + public toggle() { + this.is_open = !this.is_open; + this.$emit(this.is_open ? "open" : "close"); + } }