diff options
Diffstat (limited to 'apps/files_sharing/src/views/SharingDetailsTab.vue')
-rw-r--r-- | apps/files_sharing/src/views/SharingDetailsTab.vue | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/files_sharing/src/views/SharingDetailsTab.vue b/apps/files_sharing/src/views/SharingDetailsTab.vue index e62a1ab94d7..b25ca81373c 100644 --- a/apps/files_sharing/src/views/SharingDetailsTab.vue +++ b/apps/files_sharing/src/views/SharingDetailsTab.vue @@ -255,7 +255,7 @@ export default { return { writeNoteToRecipientIsChecked: false, sharingPermission: BUNDLED_PERMISSIONS.ALL.toString(), - revertSharingPermission: null, + revertSharingPermission: BUNDLED_PERMISSIONS.ALL.toString(), setCustomPermissions: false, passwordError: false, advancedSectionAccordionExpanded: false, @@ -667,8 +667,10 @@ export default { } this.toggleCustomPermissions() }, - toggleCustomPermissions() { - this.setCustomPermissions = this.sharingPermission === 'custom' + toggleCustomPermissions(selectedPermission) { + const isCustomPermissions = this.sharingPermission === 'custom' + this.revertSharingPermission = !isCustomPermissions ? selectedPermission : 'custom' + this.setCustomPermissions = isCustomPermissions }, initializeAttributes() { |