Skip to content

Commit

Permalink
Merge pull request #40434 from nextcloud/40431-correctly-switch-permi…
Browse files Browse the repository at this point in the history
…ssions-radios

Correctly switch/revert from custom to bundled perms
  • Loading branch information
blizzz authored Sep 15, 2023
2 parents bf46c5b + 386b08d commit d32e03d
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 13 deletions.
8 changes: 5 additions & 3 deletions apps/files_sharing/src/views/SharingDetailsTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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() {
Expand Down
6 changes: 3 additions & 3 deletions dist/9794-9794.js → dist/8087-8087.js

Large diffs are not rendered by default.

File renamed without changes.
1 change: 1 addition & 0 deletions dist/8087-8087.js.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion dist/9794-9794.js.map

This file was deleted.

4 changes: 2 additions & 2 deletions dist/core-common.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/core-common.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/files_sharing-files_sharing_tab.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/files_sharing-files_sharing_tab.js.map

Large diffs are not rendered by default.

0 comments on commit d32e03d

Please sign in to comment.