Merge branch 'extra-fixes-privacy' into 'master'

Extra fixes for the privacy page

See merge request framasoft/mobilizon!875
This commit is contained in:
Thomas Citharel 2021-03-29 09:24:22 +00:00
commit 7a429a6b70
3 changed files with 8 additions and 4 deletions

View file

@ -109,7 +109,7 @@ export const routes = [
path: "/interact",
name: RouteName.INTERACT,
component: (): Promise<EsModuleComponent> =>
import(/* webpackChunkName: "cookies" */ "@/views/Interact.vue"),
import(/* webpackChunkName: "interact" */ "@/views/Interact.vue"),
meta: { requiredAuth: false },
},
{

View file

@ -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;
},
},
},

View file

@ -1,7 +1,11 @@
<template>
<div class="container section">
<h2 class="title">{{ $t("Privacy Policy") }}</h2>
<div class="content" v-if="config" v-html="config.privacy.bodyHtml" />
<div
class="content"
v-if="config && config.privacy"
v-html="config.privacy.bodyHtml"
/>
</div>
</template>