Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto set password for new email shares #40533

Merged
merged 1 commit into from Sep 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 9 additions & 3 deletions apps/files_sharing/src/views/SharingDetailsTab.vue
Expand Up @@ -683,11 +683,17 @@ export default {
this.revertSharingPermission = !isCustomPermissions ? selectedPermission : 'custom'
this.setCustomPermissions = isCustomPermissions
},
initializeAttributes() {
async initializeAttributes() {
let hasAdvancedAttributes = false

if (this.isNewShare) return
if (this.isNewShare) {
if (this.isPasswordEnforced && this.isPublicShare) {
this.share.newPassword = await GeneratePassword()
this.advancedSectionAccordionExpanded = true
}
return
skjnldsv marked this conversation as resolved.
Show resolved Hide resolved
}

let hasAdvancedAttributes = false
if (this.isValidShareAttribute(this.share.note)) {
this.writeNoteToRecipientIsChecked = true
hasAdvancedAttributes = true
Expand Down
3 changes: 3 additions & 0 deletions dist/1567-1567.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions dist/188-188.js

This file was deleted.

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

This file was deleted.

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.