diff --git a/src/components/features_panel/features_panel.js b/src/components/features_panel/features_panel.js index dc46f5e6f..106da1487 100644 --- a/src/components/features_panel/features_panel.js +++ b/src/components/features_panel/features_panel.js @@ -3,17 +3,18 @@ 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_capabilities.js' const FeaturesPanel = { computed: { + ...mapState(useInstanceCapabilitiesStore, [ + 'shoutAvailable', + 'pleromaChatMessagesAvailable', + 'gopherAvailable', + 'suggestionsEnabled', + 'mediaProxyAvailable', + ]), ...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), diff --git a/src/components/features_panel/features_panel.vue b/src/components/features_panel/features_panel.vue index d91ef1eff..3c6064a7e 100644 --- a/src/components/features_panel/features_panel.vue +++ b/src/components/features_panel/features_panel.vue @@ -8,19 +8,22 @@