aboutsummaryrefslogtreecommitdiff
path: root/src/components/features_panel/features_panel.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/features_panel/features_panel.js')
-rw-r--r--src/components/features_panel/features_panel.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/components/features_panel/features_panel.js b/src/components/features_panel/features_panel.js
new file mode 100644
index 00000000..e0b7a118
--- /dev/null
+++ b/src/components/features_panel/features_panel.js
@@ -0,0 +1,14 @@
+const FeaturesPanel = {
+ computed: {
+ chat: function () {
+ return this.$store.state.instance.chatAvailable && (!this.$store.state.chatDisabled)
+ },
+ gopher: function () { return this.$store.state.instance.gopherAvailable },
+ whoToFollow: function () { return this.$store.state.instance.suggestionsEnabled },
+ mediaProxy: function () { return this.$store.state.instance.mediaProxyAvailable },
+ scopeOptions: function () { return this.$store.state.instance.scopeOptionsEnabled },
+ textlimit: function () { return this.$store.state.instance.textlimit }
+ }
+}
+
+export default FeaturesPanel