diff --git a/js/src/graphql/config.ts b/js/src/graphql/config.ts index 80e79b624..17402aa23 100644 --- a/js/src/graphql/config.ts +++ b/js/src/graphql/config.ts @@ -80,6 +80,9 @@ export const CONFIG = gql` avatar banner } + instanceFeeds { + enabled + } } } `; @@ -113,6 +116,9 @@ export const ABOUT = gql` } version federating + instanceFeeds { + enabled + } } } `; diff --git a/js/src/i18n/en_US.json b/js/src/i18n/en_US.json index 3be39740e..7498744f6 100644 --- a/js/src/i18n/en_US.json +++ b/js/src/i18n/en_US.json @@ -984,5 +984,6 @@ "Unable to create the group. One of the pictures may be too heavy.": "Unable to create the group. One of the pictures may be too heavy.", "Unable to update the profile. The avatar picture may be too heavy.": "Unable to update the profile. The avatar picture may be too heavy.", "Unable to create the profile. The avatar picture may be too heavy.": "Unable to create the profile. The avatar picture may be too heavy.", - "Error while loading the preview": "Error while loading the preview" + "Error while loading the preview": "Error while loading the preview", + "Instance feeds": "Instance feeds" } diff --git a/js/src/i18n/fr_FR.json b/js/src/i18n/fr_FR.json index 32fdae799..64f62c690 100644 --- a/js/src/i18n/fr_FR.json +++ b/js/src/i18n/fr_FR.json @@ -1078,5 +1078,6 @@ "Unable to create the group. One of the pictures may be too heavy.": "Impossible de créer le groupe. Une des images est trop lourde.", "Unable to update the profile. The avatar picture may be too heavy.": "Impossible de mettre à jour le profil. L'image d'avatar est probablement trop lourde.", "Unable to create the profile. The avatar picture may be too heavy.": "Impossible de créer le profil. L'image d'avatar est probablement trop lourde.", - "Error while loading the preview": "Erreur lors du chargement de l'aperçu" + "Error while loading the preview": "Erreur lors du chargement de l'aperçu", + "Instance feeds": "Flux de l'instance" } diff --git a/js/src/types/config.model.ts b/js/src/types/config.model.ts index d4105a63f..6194115f8 100644 --- a/js/src/types/config.model.ts +++ b/js/src/types/config.model.ts @@ -94,4 +94,7 @@ export interface IConfig { avatar: number; banner: number; }; + instanceFeeds: { + enabled: boolean; + }; } diff --git a/js/src/views/About/AboutInstance.vue b/js/src/views/About/AboutInstance.vue index 590089348..8dcb96433 100644 --- a/js/src/views/About/AboutInstance.vue +++ b/js/src/views/About/AboutInstance.vue @@ -42,9 +42,13 @@
{{ $t("Instance languages") }} | -+ | {{ formattedLanguageList }} | +{{ $t("No information") }} |
{{ $t("Mobilizon version") }} | @@ -72,6 +76,29 @@{{ $t("Disabled") }} | ||
{{ $t("Instance feeds") }} | +
+ |
+ {{ $t("Disabled") }} | +