diff --git a/src/components/features_panel/features_panel.js b/src/components/features_panel/features_panel.js index 19018fb43374d4a9ec5f68ec2a6a44ba4ac69775..75a671f262bb660ec5e1818c8c19d0b62f5785cb 100644 --- a/src/components/features_panel/features_panel.js +++ b/src/components/features_panel/features_panel.js @@ -1,5 +1,10 @@ const FeaturesPanel = { computed: { + mediaProxy: function () { return this.$store.state.config.mediaProxyAvailable }, + whoToFollow: function () { return this.$store.state.config.suggestionsEnabled }, + scopeOptions: function () { return this.$store.state.config.scopeOptionsEnabled }, + formattingOptions: function () { return this.$store.state.config.formattingOptionsEnabled }, + textlimit: function () { return this.$store.state.config.textlimit } } } diff --git a/src/components/features_panel/features_panel.vue b/src/components/features_panel/features_panel.vue index bcb700ed37bdeaca752e94c1b31acbf2271cfbde..92fdb1ff689a18f5f9b0a6a872db95aba5e3bafa 100644 --- a/src/components/features_panel/features_panel.vue +++ b/src/components/features_panel/features_panel.vue @@ -8,12 +8,11 @@ </div> <div class="panel-body features"> <ul> - <li>Media proxy</li> - <li>Local chat</li> - <li>Who to follow</li> - <li>Scope options</li> - <li>Formatting options</li> - <li>Text limit=</li> + <li v-if="mediaProxy">Media proxy</li> + <li v-if="whoToFollow">Who to follow</li> + <li v-if="scopeOptions">Scope options</li> + <li v-if="formattingOptions">Formatting options</li> + <li>Text limit={{textlimit}}</li> </ul> </div> </div> diff --git a/src/main.js b/src/main.js index debd87038eb10821c253392c29c77204328a253e..64b223aa624138d92911277d89da24f14176ac20 100644 --- a/src/main.js +++ b/src/main.js @@ -225,4 +225,6 @@ window.fetch('/nodeinfo/2.0.json') const suggestions = data.metadata.suggestions store.dispatch('setOption', { name: 'suggestionsEnabled', value: suggestions.enabled }) store.dispatch('setOption', { name: 'suggestionsWeb', value: suggestions.web }) + + store.dispatch('setOption', { name: 'mediaProxyAvailable', value: data.metadata.mediaProxy }) })