From 82ebd211f6e1dd62605e8c811307d6c7fd5fdc07 Mon Sep 17 00:00:00 2001 From: penner Date: Wed, 21 Dec 2022 23:51:01 +0000 Subject: [PATCH] Simple image modal --- ui/src/App.vue | 14 +++++++------- ui/src/components/ImageModal.vue | 26 ++++++++++++-------------- 2 files changed, 19 insertions(+), 21 deletions(-) diff --git a/ui/src/App.vue b/ui/src/App.vue index f055b3b..bc8ef18 100644 --- a/ui/src/App.vue +++ b/ui/src/App.vue @@ -7,12 +7,13 @@

Der Gelöt

- + + @@ -33,13 +34,12 @@ import LoginModal from "./components/LoginModal.vue"; }, }) export default class App extends Vue { - image_url = ""; - modal_visible = false; private visible_days = 0; date = ""; declare $refs: { login_modal: LoginModal; + image_modal: ImageModal; }; public mounted(): void { @@ -57,9 +57,9 @@ export default class App extends Vue { this.$refs.login_modal.set_active(true); } - private paula(url: string): void { - this.image_url = url; - this.modal_visible = true; + private open_calendar_door(image_src: string): void { + this.$refs.image_modal.set_src(image_src); + this.$refs.image_modal.set_active(true); } } diff --git a/ui/src/components/ImageModal.vue b/ui/src/components/ImageModal.vue index 71245aa..c9a245c 100644 --- a/ui/src/components/ImageModal.vue +++ b/ui/src/components/ImageModal.vue @@ -1,36 +1,34 @@