From 049e2397b156534add9472d3c16cf92ca5a88326 Mon Sep 17 00:00:00 2001 From: Hakaba Hitoyo Date: Mon, 3 Sep 2018 15:23:09 +0900 Subject: [PATCH] update --- src/components/features_panel/features_panel.js | 5 +++++ src/components/features_panel/features_panel.vue | 11 +++++------ src/main.js | 2 ++ 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/components/features_panel/features_panel.js b/src/components/features_panel/features_panel.js index 19018fb4..75a671f2 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 bcb700ed..92fdb1ff 100644 --- a/src/components/features_panel/features_panel.vue +++ b/src/components/features_panel/features_panel.vue @@ -8,12 +8,11 @@
diff --git a/src/main.js b/src/main.js index debd8703..64b223aa 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 }) })