Skip to content

Commit d32e03d

Browse files
authored
Merge pull request #40434 from nextcloud/40431-correctly-switch-permissions-radios
Correctly switch/revert from custom to bundled perms
2 parents bf46c5b + 386b08d commit d32e03d

File tree

9 files changed

+15
-13
lines changed

9 files changed

+15
-13
lines changed

apps/files_sharing/src/views/SharingDetailsTab.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ export default {
263263
return {
264264
writeNoteToRecipientIsChecked: false,
265265
sharingPermission: BUNDLED_PERMISSIONS.ALL.toString(),
266-
revertSharingPermission: null,
266+
revertSharingPermission: BUNDLED_PERMISSIONS.ALL.toString(),
267267
setCustomPermissions: false,
268268
passwordError: false,
269269
advancedSectionAccordionExpanded: false,
@@ -675,8 +675,10 @@ export default {
675675
}
676676
this.toggleCustomPermissions()
677677
},
678-
toggleCustomPermissions() {
679-
this.setCustomPermissions = this.sharingPermission === 'custom'
678+
toggleCustomPermissions(selectedPermission) {
679+
const isCustomPermissions = this.sharingPermission === 'custom'
680+
this.revertSharingPermission = !isCustomPermissions ? selectedPermission : 'custom'
681+
this.setCustomPermissions = isCustomPermissions
680682
},
681683
initializeAttributes() {
682684
Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/8087-8087.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/9794-9794.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/core-common.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/core-common.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/files_sharing-files_sharing_tab.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/files_sharing-files_sharing_tab.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)