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); } }