diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-01-16 20:42:58 +0300 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2020-01-17 00:07:51 +0300 |
commit | eb4c42d3d1fda02895d35a360bceb08379f328c2 (patch) | |
tree | f4ded9fe2fee232f0b44f0ce94c8b45bf4a253ae /apps/files_sharing/src | |
parent | fa966ebaf1f6584b927c75f3410af29885743c48 (diff) |
Make auto accepting the default and provide setting to enforce the share acceptance process
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/files_sharing/src')
-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( |