From fb8e94c4e3990acae56b8497f506bd5e3bd9efc8 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Tue, 20 Oct 2020 10:36:43 +0200 Subject: [PATCH] Show languages on instance about Signed-off-by: Thomas Citharel --- js/src/graphql/config.ts | 2 ++ js/src/types/config.model.ts | 1 + js/src/views/About/AboutInstance.vue | 14 ++++++++++++++ 3 files changed, 17 insertions(+) diff --git a/js/src/graphql/config.ts b/js/src/graphql/config.ts index a163d438b..f8c2e5d6b 100644 --- a/js/src/graphql/config.ts +++ b/js/src/graphql/config.ts @@ -9,6 +9,7 @@ export const CONFIG = gql` registrationsAllowlist demoMode countryCode + languages anonymous { participation { allowed @@ -93,6 +94,7 @@ export const ABOUT = gql` description longDescription contact + languages registrationsOpen registrationsAllowlist anonymous { diff --git a/js/src/types/config.model.ts b/js/src/types/config.model.ts index 43a1177e5..30a79b82f 100644 --- a/js/src/types/config.model.ts +++ b/js/src/types/config.model.ts @@ -11,6 +11,7 @@ export interface IConfig { registrationsAllowlist: boolean; demoMode: boolean; countryCode: string; + languages: string[]; location: { latitude: number; longitude: number; diff --git a/js/src/views/About/AboutInstance.vue b/js/src/views/About/AboutInstance.vue index 13416dec4..fdad1e4d8 100644 --- a/js/src/views/About/AboutInstance.vue +++ b/js/src/views/About/AboutInstance.vue @@ -42,6 +42,10 @@

{{ $t("Instance configuration") }}

+ + + + @@ -73,10 +77,12 @@
{{ $t("Instance languages") }}{{ formatList(config.languages.map((lang) => getLanguageNameForCode(lang))) }}
{{ $t("Mobilizon version") }} {{ config.version }}