diff --git a/ui/src/App.vue b/ui/src/App.vue index 0f7a739..dccb68f 100644 --- a/ui/src/App.vue +++ b/ui/src/App.vue @@ -7,7 +7,18 @@
-
+ +
+ Hintergrundbild konnte nicht geladen werden +
+
diff --git a/ui/src/components/AdminButton.vue b/ui/src/components/AdminButton.vue index 4defc89..75ab479 100644 --- a/ui/src/components/AdminButton.vue +++ b/ui/src/components/AdminButton.vue @@ -15,6 +15,7 @@ import { Credentials } from "@/lib/model"; import { advent22Store } from "@/lib/store"; import { Options, Vue } from "vue-class-component"; +import { APIError } from "@/lib/api_error"; import BulmaButton from "./bulma/Button.vue"; import LoginModal from "./LoginModal.vue"; @@ -44,7 +45,7 @@ export default class extends Vue { this.store .login(creds) - .catch(this.store.alert_user_error) + .catch((error) => APIError.alert(error)) .finally(() => (this.is_busy = false)); } diff --git a/ui/src/components/Calendar.vue b/ui/src/components/Calendar.vue index dcb5860..6ecf4e9 100644 --- a/ui/src/components/Calendar.vue +++ b/ui/src/components/Calendar.vue @@ -29,14 +29,14 @@
- + @@ -46,6 +46,10 @@ diff --git a/ui/src/components/UserView.vue b/ui/src/components/UserView.vue index 90a431b..7aab8df 100644 --- a/ui/src/components/UserView.vue +++ b/ui/src/components/UserView.vue @@ -1,25 +1,22 @@