From dd40fa939233f2fd9792cbcd0ce45ebe6b60575d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Tue, 12 Sep 2023 22:42:51 +0000 Subject: [PATCH] error handling --- ui/src/components/CalendarAssistant.vue | 4 ++-- ui/src/components/ConfigView.vue | 6 +++--- ui/src/components/DoorMapEditor.vue | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ui/src/components/CalendarAssistant.vue b/ui/src/components/CalendarAssistant.vue index 541ee37..b3f6995 100644 --- a/ui/src/components/CalendarAssistant.vue +++ b/ui/src/components/CalendarAssistant.vue @@ -63,7 +63,7 @@ import MultiModal from "./calendar/MultiModal.vue"; }, }) export default class extends Vue { - public is_loaded = true; + public is_loaded = false; public day_parts: DayStrModel[] = []; public day_image_names: DayStrModel[] = []; @@ -83,7 +83,7 @@ export default class extends Vue { this.day_image_names = day_image_names; this.is_loaded = true; }) - .catch(console.log); + .catch(console.error); } public door_click(day: number) { diff --git a/ui/src/components/ConfigView.vue b/ui/src/components/ConfigView.vue index fb68623..c3c50a4 100644 --- a/ui/src/components/ConfigView.vue +++ b/ui/src/components/ConfigView.vue @@ -188,7 +188,7 @@ export default class extends Vue { this.is_loaded = true; }) - .catch(console.log); + .catch(console.error); } public load_dav_credentials(): void { @@ -200,7 +200,7 @@ export default class extends Vue { password: password, }; }) - .catch(console.log); + .catch(console.error); } public load_ui_credentials(): void { @@ -212,7 +212,7 @@ export default class extends Vue { password: password, }; }) - .catch(console.log); + .catch(console.error); } } diff --git a/ui/src/components/DoorMapEditor.vue b/ui/src/components/DoorMapEditor.vue index 4baca4f..01c55ae 100644 --- a/ui/src/components/DoorMapEditor.vue +++ b/ui/src/components/DoorMapEditor.vue @@ -68,7 +68,7 @@ import DoorPlacer from "./editor/DoorPlacer.vue"; }, }) export default class extends Vue { - public is_loaded = true; + public is_loaded = false; public readonly steps: Step[] = [ { label: "Platzieren", icon: "fa-solid fa-crosshairs" },