Merge pull request #52850 from nextcloud/backport/52813/stable30

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

View file

@ -836,8 +836,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()
// 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/7248-7248.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 @@
7248-7248.js.license

2
dist/7493-7493.js vendored Normal file

File diff suppressed because one or more lines are too long

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

File diff suppressed because one or more lines are too long

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

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long