diff options
Diffstat (limited to 'apps/files_sharing/src/components/PersonalSettings.vue')
-rw-r--r-- | apps/files_sharing/src/components/PersonalSettings.vue | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/apps/files_sharing/src/components/PersonalSettings.vue b/apps/files_sharing/src/components/PersonalSettings.vue index b6cbbc180b6..ec7255480eb 100644 --- a/apps/files_sharing/src/components/PersonalSettings.vue +++ b/apps/files_sharing/src/components/PersonalSettings.vue @@ -20,7 +20,7 @@ --> <template> - <div id="files-sharing-personal-settings" class="section"> + <div id="files-sharing-personal-settings" class="section" v-if="!enforceAcceptShares"> <h2>{{ t('files', 'Sharing') }}</h2> <p> <input id="files-sharing-personal-settings-accept" @@ -42,12 +42,10 @@ export default { name: 'PersonalSettings', data() { return { - accepting: true, + accepting: loadState('files_sharing', 'accept_default'), + enforceAcceptShares: loadState('files_sharing', 'enforce_accept'), } }, - mounted() { - this.accepting = loadState('files_sharing', 'accept_default') - }, methods: { toggleEnabled() { axios.put( |