diff --git a/ui/src/components/CalendarDoor.vue b/ui/src/components/CalendarDoor.vue index 595804b..91df1d2 100644 --- a/ui/src/components/CalendarDoor.vue +++ b/ui/src/components/CalendarDoor.vue @@ -13,12 +13,8 @@ import { Vue, Options } from "vue-class-component"; export default class CalendarDoor extends Vue { day!: number; - private get image_url(): string { - return this.$advent22.api_url("days/image/" + this.day); - } - private on_click() { - this.$advent22.api_get_blob("days/image/" + this.day, (data) => { + this.$advent22.api_get_blob(`days/image/${this.day}`, (data) => { this.$emit("openDoor", data); }); }