From db127252cf61dd2b17e807a0a57f888b6282a081 Mon Sep 17 00:00:00 2001 From: Roberto Guido Date: Thu, 9 Jul 2026 23:21:16 +0200 Subject: [PATCH] feat: unified attachments (as file and as link) from Files Signed-off-by: Roberto Guido --- src/components/Composer.vue | 14 -------------- src/components/ComposerAttachments.vue | 22 +++------------------- 2 files changed, 3 insertions(+), 33 deletions(-) diff --git a/src/components/Composer.vue b/src/components/Composer.vue index 846c9ece14..3656328a55 100644 --- a/src/components/Composer.vue +++ b/src/components/Composer.vue @@ -350,14 +350,6 @@ t('mail', 'Add attachment from Files') }} - - - {{ - t('mail', 'Add share link from Files') - }} - - @@ -120,18 +113,14 @@ export default { isToggle: false, hasNextLine: false, isAttachmentPickerOpen: false, - isLinkPickerOpen: false, attachmentPickerButtons: [ { - label: t('mail', 'Choose'), + label: t('mail', 'Add as attachment'), callback: this.onAddCloudAttachment, type: 'primary', }, - ], - - linkPickerButtons: [ { - label: t('mail', 'Choose'), + label: t('mail', 'Add as share link'), callback: this.onAddCloudAttachmentLink, type: 'primary', }, @@ -193,7 +182,6 @@ export default { created() { this.bus.on('on-add-local-attachment', this.onAddLocalAttachment) this.bus.on('on-add-cloud-attachment', this.openAttachementPicker) - this.bus.on('on-add-cloud-attachment-link', this.OpenLinkPicker) this.bus.on('on-add-message-as-attachment', this.onAddMessageAsAttachment) this.value.map((attachment) => { this.attachments.push({ @@ -221,10 +209,6 @@ export default { this.isAttachmentPickerOpen = true }, - OpenLinkPicker() { - this.isLinkPickerOpen = true - }, - onAddLocalAttachment() { this.$refs.localAttachments.click() },