akkoma-fe/src/components/features_panel/features_panel.js

15 lines
620 B
JavaScript
Raw Normal View History

2018-09-03 05:43:10 +00:00
const FeaturesPanel = {
computed: {
2018-09-04 01:44:25 +00:00
chat: function () {
2018-09-09 19:31:34 +00:00
return this.$store.state.instance.chatAvailable && (!this.$store.state.chatDisabled)
2018-09-04 01:44:25 +00:00
},
2018-09-09 18:21:23 +00:00
gopher: function () { return this.$store.state.instance.gopherAvailable },
whoToFollow: function () { return this.$store.state.instance.suggestionsEnabled },
mediaProxy: function () { return this.$store.state.instance.mediaProxyAvailable },
scopeOptionsMinimal: function () { return this.$store.state.instance.scopeOptionsMinimal },
2018-09-09 18:21:23 +00:00
textlimit: function () { return this.$store.state.instance.textlimit }
2018-09-03 05:43:10 +00:00
}
}
export default FeaturesPanel