diff --git a/src/components/Editor/Attachments/AttachmentsList.vue b/src/components/Editor/Attachments/AttachmentsList.vue index 2c0d89bd3..9877e649b 100644 --- a/src/components/Editor/Attachments/AttachmentsList.vue +++ b/src/components/Editor/Attachments/AttachmentsList.vue @@ -88,7 +88,7 @@ import Paperclip from 'vue-material-design-icons/Paperclip.vue' import Plus from 'vue-material-design-icons/Plus.vue' import { generateUrl, getBaseUrl } from '@nextcloud/router' -import { getFilePickerBuilder, showError } from '@nextcloud/dialogs' +import { FilePickerType, getFilePickerBuilder, showError } from '@nextcloud/dialogs' import logger from '../../../utils/logger.js' import { uploadLocalAttachment, @@ -154,7 +154,11 @@ 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) + // TODO: migrate to addButton() => requires a translation change so no backporting + .setType(FilePickerType.Choose) + .build() try { const filename = await picker.pick(t('calendar', 'Choose a file to share as a link')) if (!this.isDuplicateAttachment(filename)) {