From 20375f2c9d261eda871f3fc2a83dcf2655c575ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Tue, 12 Sep 2023 13:55:08 +0000 Subject: [PATCH] reflect api changes in UI --- ui/src/components/Calendar.vue | 2 +- ui/src/components/CalendarAssistant.vue | 2 +- ui/src/components/DoorMapEditor.vue | 4 ++-- ui/src/components/calendar/CalendarDoor.vue | 2 +- ui/src/components/editor/DoorChooser.vue | 2 +- ui/src/components/editor/DoorPlacer.vue | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ui/src/components/Calendar.vue b/ui/src/components/Calendar.vue index 313d43a..e6d1930 100644 --- a/ui/src/components/Calendar.vue +++ b/ui/src/components/Calendar.vue @@ -3,7 +3,7 @@
- + this.$refs.multi_modal.show_image(data)) .catch(() => this.$refs.multi_modal.set_active(false)); } diff --git a/ui/src/components/DoorMapEditor.vue b/ui/src/components/DoorMapEditor.vue index 4186c64..b24a41b 100644 --- a/ui/src/components/DoorMapEditor.vue +++ b/ui/src/components/DoorMapEditor.vue @@ -76,7 +76,7 @@ export default class extends Vue { public doors: Door[] = []; private load_doors(): Promise { - return this.$advent22.api_get("general/doors").then((data) => { + return this.$advent22.api_get("admin/doors").then((data) => { this.doors.length = 0; for (const value of data) { @@ -96,7 +96,7 @@ export default class extends Vue { data.push(door.save()); } - return this.$advent22.api_put("general/doors", data); + return this.$advent22.api_put("admin/doors", data); } public mounted(): void { diff --git a/ui/src/components/calendar/CalendarDoor.vue b/ui/src/components/calendar/CalendarDoor.vue index cf4a803..b48d79e 100644 --- a/ui/src/components/calendar/CalendarDoor.vue +++ b/ui/src/components/calendar/CalendarDoor.vue @@ -25,7 +25,7 @@ export default class extends Vue { this.$emit("doorClick"); this.$advent22 - .api_get_blob(`days/image/${this.door.day}`) + .api_get_blob(`images/${this.door.day}`) .then((data) => this.$emit("doorSuccess", data)) .catch(([reason]) => { let msg = "Unbekannter Fehler, bitte wiederholen!"; diff --git a/ui/src/components/editor/DoorChooser.vue b/ui/src/components/editor/DoorChooser.vue index fc2c6d8..4c3e333 100644 --- a/ui/src/components/editor/DoorChooser.vue +++ b/ui/src/components/editor/DoorChooser.vue @@ -11,7 +11,7 @@
- +
- +