Merge pull request #40434 from nextcloud/40431-correctly-switch-permissions-radios

Correctly switch/revert from custom to bundled perms
This commit is contained in:
Arthur Schiwon 2023-09-15 15:12:23 +02:00 committed by GitHub
commit d32e03ddac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 15 additions and 13 deletions

View file

@ -263,7 +263,7 @@ export default {
return {
writeNoteToRecipientIsChecked: false,
sharingPermission: BUNDLED_PERMISSIONS.ALL.toString(),
revertSharingPermission: null,
revertSharingPermission: BUNDLED_PERMISSIONS.ALL.toString(),
setCustomPermissions: false,
passwordError: false,
advancedSectionAccordionExpanded: false,
@ -675,8 +675,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() {

File diff suppressed because one or more lines are too long

1
dist/8087-8087.js.map vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

4
dist/core-common.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long