Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F85651079
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/src/components/features_panel/features_panel.js b/src/components/features_panel/features_panel.js
index dc46f5e6fe..4c80de189f 100644
--- a/src/components/features_panel/features_panel.js
+++ b/src/components/features_panel/features_panel.js
@@ -1,24 +1,26 @@
import { mapState } from 'pinia'
import fileSizeFormatService from '../../services/file_size_format/file_size_format.js'
import { useInstanceStore } from 'src/stores/instance.js'
+import { useInstanceCapabilitiesStore } from 'src/stores/instance.js'
const FeaturesPanel = {
computed: {
+ ...mapState(useInstanceCapabilitiesStore, [
+ 'suggestionsEnabled',
+ 'pleromaChatMessagesAvailable',
+ 'mediaProxyAvailable',
+ 'gopherAvailable',
+ 'shoutAvailable',
+ ],
+ )
...mapState(useInstanceStore, {
- shout: (store) => store.shoutAvailable,
- pleromaChatMessages: (store) =>
- store.featureSet.pleromaChatMessagesAvailable,
- gopher: (store) => store.featureSet.gopherAvailable,
- whoToFollow: (store) => store.featureSet.suggestionsEnabled,
- mediaProxy: (store) => store.featureSet.mediaProxyAvailable,
- minimalScopesMode: (store) => store.prefsStorage.minimalScopesMode,
textlimit: (store) => store.limits.textlimit,
uploadlimit: (store) =>
fileSizeFormatService.fileSizeFormat(store.limits.uploadlimit),
}),
},
}
export default FeaturesPanel
diff --git a/src/components/features_panel/features_panel.vue b/src/components/features_panel/features_panel.vue
index d91ef1eff7..3c6064a7e4 100644
--- a/src/components/features_panel/features_panel.vue
+++ b/src/components/features_panel/features_panel.vue
@@ -1,41 +1,44 @@
<template>
<div class="features-panel">
<div class="panel panel-default base01-background">
<div class="panel-heading timeline-heading base02-background base04 -sticky">
<h1 class="title">
{{ $t('features_panel.title') }}
</h1>
</div>
<div class="panel-body">
<ul>
+ <li v-if="shoutAvailable">
+ {{ $t('features_panel.shout') }}
+ </li>
<li v-if="shout">
{{ $t('features_panel.shout') }}
</li>
- <li v-if="pleromaChatMessages">
+ <li v-if="pleromaChatMessagesAvailable">
{{ $t('features_panel.pleroma_chat_messages') }}
</li>
- <li v-if="gopher">
+ <li v-if="gopherAvailable">
{{ $t('features_panel.gopher') }}
</li>
- <li v-if="whoToFollow">
+ <li v-if="suggestionsEnabled">
{{ $t('features_panel.who_to_follow') }}
</li>
- <li v-if="mediaProxy">
+ <li v-if="mediaProxyAvailable">
{{ $t('features_panel.media_proxy') }}
</li>
<li>{{ $t('features_panel.scope_options') }}</li>
<li>{{ $t('features_panel.text_limit') }} = {{ textlimit }}</li>
<li>{{ $t('features_panel.upload_limit') }} = {{ uploadlimit.num }} {{ $t('upload.file_size_units.' + uploadlimit.unit) }}</li>
</ul>
</div>
</div>
</div>
</template>
<script src="./features_panel.js"></script>
<style lang="scss">
.features-panel li {
line-height: 24px;
}
</style>
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sun, Aug 30, 11:42 AM (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1737951
Default Alt Text
(3 KB)
Attached To
Mode
rPUFE pleroma-fe-upstream
Attached
Detach File
Event Timeline
Log In to Comment