From df012f5af7526785e5bb5a7ca08476eee4288597 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Fri, 26 Mar 2021 19:27:51 +0100 Subject: [PATCH] Extra fixes for the privacy page Signed-off-by: Thomas Citharel --- js/src/router/index.ts | 2 +- js/src/views/About/AboutInstance.vue | 4 ++-- js/src/views/About/Privacy.vue | 6 +++++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/js/src/router/index.ts b/js/src/router/index.ts index 9853a7a3..6336e886 100644 --- a/js/src/router/index.ts +++ b/js/src/router/index.ts @@ -109,7 +109,7 @@ export const routes = [ path: "/interact", name: RouteName.INTERACT, component: (): Promise => - import(/* webpackChunkName: "cookies" */ "@/views/Interact.vue"), + import(/* webpackChunkName: "interact" */ "@/views/Interact.vue"), meta: { requiredAuth: false }, }, { diff --git a/js/src/views/About/AboutInstance.vue b/js/src/views/About/AboutInstance.vue index 120b0dcf..59008934 100644 --- a/js/src/views/About/AboutInstance.vue +++ b/js/src/views/About/AboutInstance.vue @@ -97,11 +97,11 @@ import langs from "../../i18n/langs.json"; query: LANGUAGES_CODES, variables() { return { - codes: this.config.languages, + codes: this?.config.languages, }; }, skip() { - return !this.config || !this.config.languages; + return !this.config || !this.config?.languages; }, }, }, diff --git a/js/src/views/About/Privacy.vue b/js/src/views/About/Privacy.vue index ffb1791f..4de1084c 100644 --- a/js/src/views/About/Privacy.vue +++ b/js/src/views/About/Privacy.vue @@ -1,7 +1,11 @@