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)));