From df34ac087e28f547ab3d06f81762b18693e7273e Mon Sep 17 00:00:00 2001 From: Richard Steinmetz Date: Tue, 1 Oct 2024 16:47:43 +0200 Subject: [PATCH] fix(attachments): add missing file picker confirm Signed-off-by: Richard Steinmetz --- src/components/Editor/Attachments/AttachmentsList.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/Editor/Attachments/AttachmentsList.vue b/src/components/Editor/Attachments/AttachmentsList.vue index 2c0d89bd3..e8833a586 100644 --- a/src/components/Editor/Attachments/AttachmentsList.vue +++ b/src/components/Editor/Attachments/AttachmentsList.vue @@ -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)) {