Skip to content

Commit 58bdf17

Browse files
authored
Merge pull request #52850 from nextcloud/backport/52813/stable30
[stable30] fix(files_sharing): Show note if note exists on share
2 parents e786bd6 + b7aa85d commit 58bdf17

File tree

11 files changed

+10
-10
lines changed

11 files changed

+10
-10
lines changed

apps/files_sharing/src/views/SharingDetailsTab.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -836,8 +836,9 @@ export default {
836836
this.advancedSectionAccordionExpanded = true
837837
}
838838
839-
if (this.share.note) {
839+
if (this.isValidShareAttribute(this.share.note)) {
840840
this.writeNoteToRecipientIsChecked = true
841+
this.advancedSectionAccordionExpanded = true
841842
}
842843
843844
},

cypress/e2e/files_sharing/note-to-recipient.cy.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ describe('files_sharing: Note to recipient', { testIsolation: true }, () => {
8080
cy.get('[data-cy-sidebar]').within(() => {
8181
// Open the share
8282
cy.get('[data-cy-files-sharing-share-actions]').first().click()
83-
// Open the custom settings
84-
cy.get('[data-cy-files-sharing-share-permissions-bundle="custom"]').click()
8583

8684
cy.findByRole('checkbox', { name: /note to recipient/i })
8785
.and('be.checked')
@@ -90,4 +88,5 @@ describe('files_sharing: Note to recipient', { testIsolation: true }, () => {
9088
.and('have.value', 'Hello, this is the note.')
9189
})
9290
})
91+
9392
})

dist/7248-7248.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

dist/7248-7248.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/7248-7248.js.map.license

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/7493-7493.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/7493-7493.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/7493-7493.js.map.license

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
7493-7493.js.license

dist/files_sharing-files_sharing_tab.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)