aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfeld <feld@feld.me>2019-02-08 21:27:58 +0000
committerfeld <feld@feld.me>2019-02-08 21:27:58 +0000
commit9768558e7c65f6a4a343d4a78b2297e4888cf77b (patch)
treeda9e2c0944acd4a2453ef59ac63e622cbbec6b73
parentda0a5535eb09f6637df921a8a5f951c295bedeac (diff)
parent5b52e020e32def19622e3d1df82f93bc716946e2 (diff)
Merge branch 'fix/show-features-panel-not-working' into 'develop'
#322 Fix showFeaturesPanel option as instance See merge request pleroma/pleroma-fe!552
-rw-r--r--src/App.js2
-rw-r--r--src/boot/after_store.js1
-rw-r--r--src/components/about/about.js2
-rw-r--r--src/modules/config.js1
-rw-r--r--src/modules/instance.js1
-rw-r--r--static/config.json3
6 files changed, 6 insertions, 4 deletions
diff --git a/src/App.js b/src/App.js
index 18bff2dd..200254f3 100644
--- a/src/App.js
+++ b/src/App.js
@@ -82,7 +82,7 @@ export default {
unseenNotificationsCount () {
return this.unseenNotifications.length
},
- showFeaturesPanel () { return this.$store.state.config.showFeaturesPanel }
+ showFeaturesPanel () { return this.$store.state.instance.showFeaturesPanel }
},
methods: {
scrollToTop () {
diff --git a/src/boot/after_store.js b/src/boot/after_store.js
index 3b08a3f6..b5da9944 100644
--- a/src/boot/after_store.js
+++ b/src/boot/after_store.js
@@ -87,6 +87,7 @@ const afterStoreSetup = ({ store, i18n }) => {
copyInstanceOption('postContentType')
copyInstanceOption('alwaysShowSubjectInput')
copyInstanceOption('noAttachmentLinks')
+ copyInstanceOption('showFeaturesPanel')
if ((config.chatDisabled)) {
store.dispatch('disableChat')
diff --git a/src/components/about/about.js b/src/components/about/about.js
index b1ce3c7d..ae1cb182 100644
--- a/src/components/about/about.js
+++ b/src/components/about/about.js
@@ -9,7 +9,7 @@ const About = {
TermsOfServicePanel
},
computed: {
- showFeaturesPanel () { return this.$store.state.config.showFeaturesPanel }
+ showFeaturesPanel () { return this.$store.state.instance.showFeaturesPanel }
}
}
diff --git a/src/modules/config.js b/src/modules/config.js
index 2a70fbe2..71f71376 100644
--- a/src/modules/config.js
+++ b/src/modules/config.js
@@ -31,7 +31,6 @@ const defaultState = {
scopeCopy: undefined, // instance default
subjectLineBehavior: undefined, // instance default
alwaysShowSubjectInput: undefined, // instance default
- showFeaturesPanel: true,
postContentType: undefined // instance default
}
diff --git a/src/modules/instance.js b/src/modules/instance.js
index 475da92e..b4ec8253 100644
--- a/src/modules/instance.js
+++ b/src/modules/instance.js
@@ -29,6 +29,7 @@ const defaultState = {
nsfwCensorImage: undefined,
vapidPublicKey: undefined,
noAttachmentLinks: false,
+ showFeaturesPanel: true,
// Nasty stuff
pleromaBackend: true,
diff --git a/static/config.json b/static/config.json
index 685846b9..533a5b08 100644
--- a/static/config.json
+++ b/static/config.json
@@ -20,5 +20,6 @@
"loginMethod": "password",
"webPushNotifications": false,
"noAttachmentLinks": false,
- "nsfwCensorImage": ""
+ "nsfwCensorImage": "",
+ "showFeaturesPanel": true
}