Merge pull request #40437 from nextcloud/backport/40434/stable27

[stable27] Correctly switch/revert from custom to bundled perms
This commit is contained in:
Arthur Schiwon 2023-09-15 16:26:10 +02:00 committed by GitHub
commit ed20a907a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 6 deletions

View file

@ -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() {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long