Skip to content

Commit

Permalink
Merge pull request #6384 from nextcloud/backport/6383/stable5.0
Browse files Browse the repository at this point in the history
[stable5.0] fix(attachments): add missing file picker confirm
  • Loading branch information
st3iny authored Oct 1, 2024
2 parents 6c2f112 + 4398324 commit 2fa248a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/Editor/Attachments/AttachmentsList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,14 @@ export default {
})
},
async openFilesModal() {
const picker = getFilePickerBuilder(t('calendar', 'Choose a file to add as attachment')).setMultiSelect(false).build()
const picker = getFilePickerBuilder(t('calendar', 'Choose a file to add as attachment'))
.setMultiSelect(false)
.addButton({
label: t('calendar', 'Pick'),
type: 'primary',
callback: (nodes) => logger.debug('Picked attachment', { nodes }),
})
.build()
try {
const filename = await picker.pick(t('calendar', 'Choose a file to share as a link'))
if (!this.isDuplicateAttachment(filename)) {
Expand Down

0 comments on commit 2fa248a

Please sign in to comment.