2020-12-11 06:11:03 -08:00
|
|
|
import fileSizeFormatService from '../../services/file_size_format/file_size_format.js'
|
|
|
|
|
2018-09-02 22:43:10 -07:00
|
|
|
const FeaturesPanel = {
|
|
|
|
computed: {
|
2019-08-17 01:18:42 -07:00
|
|
|
chat: function () { return this.$store.state.instance.chatAvailable },
|
2020-05-07 06:10:53 -07:00
|
|
|
pleromaChatMessages: function () { return this.$store.state.instance.pleromaChatMessagesAvailable },
|
2018-09-09 11:21:23 -07: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 },
|
2019-03-30 03:41:42 -07:00
|
|
|
minimalScopesMode: function () { return this.$store.state.instance.minimalScopesMode },
|
2020-12-11 06:11:03 -08:00
|
|
|
textlimit: function () { return this.$store.state.instance.textlimit },
|
|
|
|
uploadlimit: function () { return fileSizeFormatService.fileSizeFormat(this.$store.state.instance.uploadlimit) }
|
2018-09-02 22:43:10 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default FeaturesPanel
|