From 2052efedd95f7d878519bb1207e1142155ba56e5 Mon Sep 17 00:00:00 2001 From: penner Date: Thu, 22 Dec 2022 00:16:42 +0000 Subject: [PATCH] cleanup --- ui/src/App.vue | 17 ++++++++++------- ui/src/components/ImageModal.vue | 3 ++- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/ui/src/App.vue b/ui/src/App.vue index bc8ef18..199b654 100644 --- a/ui/src/App.vue +++ b/ui/src/App.vue @@ -1,14 +1,14 @@ @@ -53,13 +59,10 @@ export default class App extends Vue { this.visible_days = visible_days; } ); - - this.$refs.login_modal.set_active(true); } private open_calendar_door(image_src: string): void { - this.$refs.image_modal.set_src(image_src); - this.$refs.image_modal.set_active(true); + this.$refs.image_modal.show_src(image_src); } } diff --git a/ui/src/components/ImageModal.vue b/ui/src/components/ImageModal.vue index c9a245c..9bbfb32 100644 --- a/ui/src/components/ImageModal.vue +++ b/ui/src/components/ImageModal.vue @@ -27,8 +27,9 @@ export default class ImageModal extends Vue { this.active = state; } - public set_src(src: string): void { + public show_src(src: string): void { this.image_src = src; + this.set_active(true); } }