diff --git a/ui/src/components/Calendar.vue b/ui/src/components/Calendar.vue index fb23999..313d43a 100644 --- a/ui/src/components/Calendar.vue +++ b/ui/src/components/Calendar.vue @@ -1,18 +1,25 @@ @@ -36,11 +43,21 @@ import ThouCanvas from "./calendar/ThouCanvas.vue"; }) export default class extends Vue { public readonly doors!: Door[]; + private readonly idle_caption = "Finde die Türchen auf dem Adventskalender!"; + public figure_caption = this.idle_caption; declare $refs: { multi_modal: MultiModal; }; + public door_hover(index: number) { + this.figure_caption = `Türchen ${index + 1}`; + } + + public door_unhover() { + this.figure_caption = this.idle_caption; + } + public door_click() { this.$refs.multi_modal.show_progress(); }