Merge pull request #52813 from nextcloud/fix/52794/share-advanced-settings

fix(files_sharing): Show note if note exists on share
This commit is contained in:
F. E Noel Nfebe 2025-05-15 07:49:26 +02:00 committed by GitHub
commit 158b3ef859
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 10 additions and 10 deletions

View file

@ -905,8 +905,9 @@ export default {
this.advancedSectionAccordionExpanded = true
}
if (this.share.note) {
if (this.isValidShareAttribute(this.share.note)) {
this.writeNoteToRecipientIsChecked = true
this.advancedSectionAccordionExpanded = true
}
},

View file

@ -80,8 +80,6 @@ describe('files_sharing: Note to recipient', { testIsolation: true }, () => {
cy.get('[data-cy-sidebar]').within(() => {
// Open the share
cy.get('[data-cy-files-sharing-share-actions]').first().click({ force: true })
// Open the custom settings
cy.get('[data-cy-files-sharing-share-permissions-bundle="custom"]').click()
cy.findByRole('checkbox', { name: /note to recipient/i })
.and('be.checked')
@ -90,4 +88,5 @@ describe('files_sharing: Note to recipient', { testIsolation: true }, () => {
.and('have.value', 'Hello, this is the note.')
})
})
})

2
dist/3982-3982.js vendored Normal file

File diff suppressed because one or more lines are too long

1
dist/3982-3982.js.map vendored Normal file

File diff suppressed because one or more lines are too long

1
dist/3982-3982.js.map.license vendored Symbolic link
View file

@ -0,0 +1 @@
3982-3982.js.license

2
dist/4589-4589.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1 +0,0 @@
4589-4589.js.license

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long