commit: 962a33f887786dfdd2df57be66cd37b8ddb7d06d
parent: a842cadd155269d2a46bc3e342eda77e5fc4a773
Author: HJ <spam@hjkos.com>
Date: Sun, 17 Feb 2019 21:27:58 +0000
Merge branch 'instance-specific-panel' into 'develop'
Hide ISP option if instance has panel disabled
Closes #368
See merge request pleroma/pleroma-fe!592
Diffstat:
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/components/settings/settings.js b/src/components/settings/settings.js
@@ -91,7 +91,8 @@ const settings = {
},
currentSaveStateNotice () {
return this.$store.state.interface.settings.currentSaveStateNotice
- }
+ },
+ instanceSpecificPanelPresent () { return this.$store.state.instance.showInstanceSpecificPanel }
},
watch: {
hideAttachmentsLocal (value) {
diff --git a/src/components/settings/settings.vue b/src/components/settings/settings.vue
@@ -27,7 +27,7 @@
<li>
<interface-language-switcher />
</li>
- <li>
+ <li v-if="instanceSpecificPanelPresent">
<input type="checkbox" id="hideISP" v-model="hideISPLocal">
<label for="hideISP">{{$t('settings.hide_isp')}}</label>
</li>