From 487f4069b14fde6304c9a42cec5b1c1af79814c5 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Thu, 20 Apr 2023 12:19:21 +0200 Subject: [PATCH] fix(front): Fix about sections titles Signed-off-by: Thomas Citharel --- js/src/views/About/AboutInstanceView.vue | 13 ++++--------- js/src/views/About/GlossaryView.vue | 9 ++++----- js/src/views/About/PrivacyView.vue | 9 ++++----- js/src/views/About/RulesView.vue | 9 ++++----- 4 files changed, 16 insertions(+), 24 deletions(-) diff --git a/js/src/views/About/AboutInstanceView.vue b/js/src/views/About/AboutInstanceView.vue index 13a33f1e..7f8c3cf0 100644 --- a/js/src/views/About/AboutInstanceView.vue +++ b/js/src/views/About/AboutInstanceView.vue @@ -123,6 +123,7 @@ import { IStatistics } from "../../types/statistics.model"; import { useQuery } from "@vue/apollo-composable"; import { computed } from "vue"; import { useI18n } from "vue-i18n"; +import { useHead } from "@vueuse/head"; const { result: configResult } = useQuery<{ config: IConfig }>(ABOUT); @@ -156,15 +157,9 @@ const formattedLanguageList = computed((): string => { const { t } = useI18n({ useScope: "global" }); -// metaInfo() { -// return { -// title: this.t("About {instance}", { -// // eslint-disable-next-line @typescript-eslint/ban-ts-comment -// // @ts-ignore -// instance: this?.config?.name, -// }) as string, -// }; -// } +useHead({ + title: t("About {instance}", { instance: config.value?.name }), +});