Compare commits

...

2 Commits

Author SHA1 Message Date
Sam Therapy 1e59d80a0f
fix feature panel
continuous-integration/drone/push Build was killed Details
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2023-04-08 22:57:35 +02:00
Mint 6eaffcc625
Show more features in their block 2023-04-08 22:56:47 +02:00
4 changed files with 21 additions and 6 deletions

View File

@ -278,6 +278,8 @@ const getNodeInfo = async ({ store }) => {
store.dispatch('setInstanceOption', { name: 'safeDM', value: features.includes('safe_dm_mentions') })
store.dispatch('setInstanceOption', { name: 'shoutAvailable', value: features.includes('chat') })
store.dispatch('setInstanceOption', { name: 'pleromaChatMessagesAvailable', value: features.includes('pleroma_chat_messages') })
store.dispatch('setInstanceOption', { name: 'pleromaCustomEmojiReactionsAvailable', value: features.includes('pleroma_custom_emoji_reactions') || features.includes('custom_emoji_reactions') })
store.dispatch('setInstanceOption', { name: 'quotePostsAvailable', value: features.includes('quote_posting') })
store.dispatch('setInstanceOption', { name: 'gopherAvailable', value: features.includes('gopher') })
store.dispatch('setInstanceOption', { name: 'pollsAvailable', value: features.includes('polls') })
store.dispatch('setInstanceOption', { name: 'editingAvailable', value: features.includes('editing') })

View File

@ -5,6 +5,8 @@ const FeaturesPanel = {
shout: function () { return this.$store.state.instance.shoutAvailable },
pleromaChatMessages: function () { return this.$store.state.instance.pleromaChatMessagesAvailable },
gopher: function () { return this.$store.state.instance.gopherAvailable },
quotePosts: function () { return this.$store.state.instance.quotePostsAvailable },
customReacts: function () { return this.$store.state.instance.pleromaCustomEmojiReactionsAvailable },
whoToFollow: function () { return this.$store.state.instance.suggestionsEnabled },
mediaProxy: function () { return this.$store.state.instance.mediaProxyAvailable },
textlimit: function () { return this.$store.state.instance.textlimit },

View File

@ -17,6 +17,12 @@
<li v-if="gopher">
{{ $t('features_panel.gopher') }}
</li>
<li v-if="quotePosts">
{{ $t('features_panel.quote_posts') }}
</li>
<li v-if="customReacts">
{{ $t('features_panel.custom_reacts') }}
</li>
<li v-if="whoToFollow">
{{ $t('features_panel.who_to_follow') }}
</li>

View File

@ -100,12 +100,17 @@
"processing": "Processing, you'll soon be asked to download your file"
},
"features_panel": {
"media_proxy": "Media proxy",
"scope_options": "Scope options",
"text_limit": "Text limit",
"title": "Features",
"upload_limit": "Upload limit",
"who_to_follow": "Who to follow"
"shout": "Shoutbox",
"pleroma_chat_messages": "Pleroma Chat",
"gopher": "Gopher",
"quote_posts": "Quote posts",
"custom_reacts": "Custom emoji reactions",
"media_proxy": "Media proxy",
"scope_options": "Scope options",
"text_limit": "Text limit",
"title": "Features",
"who_to_follow": "Who to follow",
"upload_limit": "Upload limit"
},
"file_type": {
"audio": "Audio",