From 59cf7202f4ec2180bd322d0e5a5999ab67c491f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Wed, 1 Nov 2023 01:12:03 +0000 Subject: [PATCH] updated title handling --- ui/src/App.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ui/src/App.vue b/ui/src/App.vue index 2129dc7..9e16722 100644 --- a/ui/src/App.vue +++ b/ui/src/App.vue @@ -2,7 +2,7 @@

{{ title }}

-

Der Gelöt

+

{{ subtitle }}

@@ -47,15 +47,20 @@ import UserView from "./components/UserView.vue"; export default class extends Vue { public is_admin = false; public title = "Adventskalender"; + public subtitle = "Lorem Ipsum"; public footer = ""; public mounted(): void { Promise.all([ this.$advent22.api_get("user/title"), + this.subtitle, // TODO this.$advent22.api_get("user/footer"), ]) - .then(([title, footer]) => { + .then(([title, subtitle, footer]) => { + document.title = `${title} – ${subtitle}`; + this.title = title; + this.subtitle = subtitle; this.footer = footer; }) .catch((error) => alert(this.$advent22.format_user_error(error)));