mirror of
https://git.youjo.love/youjo/youjo-fe.git
synced 2025-01-18 18:36:01 +01:00
Add feature panel listing
This commit is contained in:
parent
557253648f
commit
d8b070847c
4 changed files with 6 additions and 0 deletions
|
@ -287,6 +287,7 @@ const getNodeInfo = async ({ store }) => {
|
|||
store.dispatch('setInstanceOption', { name: 'quotePosting', value: features.includes('quote_posting') })
|
||||
store.dispatch('setInstanceOption', { name: 'customEmojiReactions', value: features.includes('custom_emoji_reactions') })
|
||||
store.dispatch('setInstanceOption', { name: 'bubbleTimeline', value: features.includes('bubble_timeline') })
|
||||
store.dispatch('setInstanceOption', { name: 'profileCustomisation', value: features.includes('profile_customisation') })
|
||||
|
||||
const uploadLimits = metadata.uploadLimits
|
||||
store.dispatch('setInstanceOption', { name: 'uploadlimit', value: parseInt(uploadLimits.general) })
|
||||
|
|
|
@ -5,6 +5,7 @@ const FeaturesPanel = {
|
|||
shout: function () { return this.$store.state.instance.shoutAvailable },
|
||||
bubbleTimeline: function () { return this.$store.state.instance.bubbleTimeline },
|
||||
pleromaChatMessages: function () { return this.$store.state.instance.pleromaChatMessagesAvailable },
|
||||
profileCustomisation: function () { return this.$store.state.instance.profileCustomisation },
|
||||
customEmojiReactions: function () { return this.$store.state.instance.customEmojiReactions },
|
||||
gopher: function () { return this.$store.state.instance.gopherAvailable },
|
||||
translationEnabled: function () { return this.$store.state.instance.translationEnabled },
|
||||
|
|
|
@ -17,6 +17,9 @@
|
|||
<li v-if="pleromaChatMessages">
|
||||
{{ $t('features_panel.pleroma_chat_messages') }}
|
||||
</li>
|
||||
<li v-if="profileCustomisation">
|
||||
{{ $t('features_panel.profile_customisation') }}
|
||||
</li>
|
||||
<li v-if="customEmojiReactions">
|
||||
{{ $t('features_panel.custom_emoji_reactions') }}
|
||||
</li>
|
||||
|
|
|
@ -105,6 +105,7 @@
|
|||
"features_panel": {
|
||||
"shout": "Shoutbox",
|
||||
"pleroma_chat_messages": "Pleroma Chat",
|
||||
"profile_customisation": "Profile Customisation",
|
||||
"custom_emoji_reactions": "Custom emoji reactions",
|
||||
"quote_posting": "Quote boosts",
|
||||
"bubble_timeline": "Bubble Timeline",
|
||||
|
|
Loading…
Reference in a new issue