From 0bf2ce0b9eeabf008741a285de57ab28d14ca45f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Tue, 12 Sep 2023 15:10:54 +0000 Subject: [PATCH] ConfigView loading flow --- ui/src/components/ConfigView.vue | 19 ++++++++++++++++--- ui/src/components/bulma/Drawer.vue | 20 +++++++++++++++++--- 2 files changed, 33 insertions(+), 6 deletions(-) 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"); + } }