mirror of
https://github.com/nextcloud/server.git
synced 2026-06-14 19:20:35 -04:00
Merge pull request #40533 from nextcloud/40493-auto-suggest-password
Auto set password for new email shares
This commit is contained in:
commit
09b1c85245
8 changed files with 17 additions and 11 deletions
|
|
@ -683,11 +683,17 @@ export default {
|
|||
this.revertSharingPermission = !isCustomPermissions ? selectedPermission : 'custom'
|
||||
this.setCustomPermissions = isCustomPermissions
|
||||
},
|
||||
initializeAttributes() {
|
||||
|
||||
if (this.isNewShare) return
|
||||
|
||||
async initializeAttributes() {
|
||||
let hasAdvancedAttributes = false
|
||||
|
||||
if (this.isNewShare) {
|
||||
if (this.isPasswordEnforced && this.isPublicShare) {
|
||||
this.share.newPassword = await GeneratePassword()
|
||||
this.advancedSectionAccordionExpanded = true
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
if (this.isValidShareAttribute(this.share.note)) {
|
||||
this.writeNoteToRecipientIsChecked = true
|
||||
hasAdvancedAttributes = true
|
||||
|
|
|
|||
3
dist/1567-1567.js
vendored
Normal file
3
dist/1567-1567.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/1567-1567.js.map
vendored
Normal file
1
dist/1567-1567.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
3
dist/188-188.js
vendored
3
dist/188-188.js
vendored
File diff suppressed because one or more lines are too long
1
dist/188-188.js.map
vendored
1
dist/188-188.js.map
vendored
File diff suppressed because one or more lines are too long
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