mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
Merge pull request #40437 from nextcloud/backport/40434/stable27
[stable27] Correctly switch/revert from custom to bundled perms
This commit is contained in:
commit
ed20a907a4
3 changed files with 8 additions and 6 deletions
|
|
@ -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() {
|
||||
|
||||
|
|
|
|||
4
dist/files_sharing-files_sharing_tab.js
vendored
4
dist/files_sharing-files_sharing_tab.js
vendored
File diff suppressed because one or more lines are too long
2
dist/files_sharing-files_sharing_tab.js.map
vendored
2
dist/files_sharing-files_sharing_tab.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue