forked from AkkomaGang/akkoma-fe
update
This commit is contained in:
parent
07ef43c7b5
commit
049e2397b1
3 changed files with 12 additions and 6 deletions
|
@ -1,5 +1,10 @@
|
||||||
const FeaturesPanel = {
|
const FeaturesPanel = {
|
||||||
computed: {
|
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 }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -8,12 +8,11 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body features">
|
<div class="panel-body features">
|
||||||
<ul>
|
<ul>
|
||||||
<li>Media proxy</li>
|
<li v-if="mediaProxy">Media proxy</li>
|
||||||
<li>Local chat</li>
|
<li v-if="whoToFollow">Who to follow</li>
|
||||||
<li>Who to follow</li>
|
<li v-if="scopeOptions">Scope options</li>
|
||||||
<li>Scope options</li>
|
<li v-if="formattingOptions">Formatting options</li>
|
||||||
<li>Formatting options</li>
|
<li>Text limit={{textlimit}}</li>
|
||||||
<li>Text limit=</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -225,4 +225,6 @@ window.fetch('/nodeinfo/2.0.json')
|
||||||
const suggestions = data.metadata.suggestions
|
const suggestions = data.metadata.suggestions
|
||||||
store.dispatch('setOption', { name: 'suggestionsEnabled', value: suggestions.enabled })
|
store.dispatch('setOption', { name: 'suggestionsEnabled', value: suggestions.enabled })
|
||||||
store.dispatch('setOption', { name: 'suggestionsWeb', value: suggestions.web })
|
store.dispatch('setOption', { name: 'suggestionsWeb', value: suggestions.web })
|
||||||
|
|
||||||
|
store.dispatch('setOption', { name: 'mediaProxyAvailable', value: data.metadata.mediaProxy })
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue