Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions src/components/Composer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -350,14 +350,6 @@
t('mail', 'Add attachment from Files')
}}
</ActionButton>
<ActionButton :close-after-click="true" :disabled="encrypt" @click="onAddCloudAttachmentLink">
<template #icon>
<IconPublic :size="20" />
</template>
{{
t('mail', 'Add share link from Files')
}}
</ActionButton>
</Actions>

<Actions
Expand Down Expand Up @@ -523,7 +515,6 @@ import { NcReferencePickerModal } from '@nextcloud/vue/components/NcRichText'
import ChevronLeft from 'vue-material-design-icons/ChevronLeft.vue'
import IconFolder from 'vue-material-design-icons/FolderOutline.vue'
import IconFormat from 'vue-material-design-icons/FormatSize.vue'
import IconPublic from 'vue-material-design-icons/Link.vue'
import Paperclip from 'vue-material-design-icons/Paperclip.vue'
import SendClock from 'vue-material-design-icons/SendClockOutline.vue'
import Send from 'vue-material-design-icons/SendOutline.vue'
Expand Down Expand Up @@ -573,7 +564,6 @@ export default {
Download,
IconUpload,
IconFolder,
IconPublic,
IconLinkPicker,
NcSelect,
NcIconSvgWrapper,
Expand Down Expand Up @@ -1413,10 +1403,6 @@ export default {
this.saveDraftDebounced()
},

onAddCloudAttachmentLink() {
this.bus.emit('on-add-cloud-attachment-link')
},

onAutocomplete(term, addressType) {
if (term === undefined || term === '') {
return
Expand Down
22 changes: 3 additions & 19 deletions src/components/ComposerAttachments.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,10 @@
@change="onLocalAttachmentSelected">
<FilePicker
v-if="isAttachmentPickerOpen"
:name="t('mail', 'Choose a file to add as attachment')"
:name="t('mail', 'Choose a file')"
:buttons="attachmentPickerButtons"
:filter-fn="filterAttachements"
@close="() => isAttachmentPickerOpen = false" />
<FilePicker
v-if="isLinkPickerOpen"
:name="t('mail', 'Choose a file to share as a link')"
:multiselect="false"
:buttons="linkPickerButtons"
:filter-fn="filterAttachements"
@close="() => isLinkPickerOpen = false" />
</div>
</template>

Expand Down Expand Up @@ -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',
},
Expand Down Expand Up @@ -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({
Expand Down Expand Up @@ -221,10 +209,6 @@ export default {
this.isAttachmentPickerOpen = true
},

OpenLinkPicker() {
this.isLinkPickerOpen = true
},

onAddLocalAttachment() {
this.$refs.localAttachments.click()
},
Expand Down
Loading