diff --git a/packages/nc-gui/components/project/spreadsheet/components/editableCell/editableAttachmentCell.vue b/packages/nc-gui/components/project/spreadsheet/components/editableCell/editableAttachmentCell.vue index 75292b8420..80885f36c9 100644 --- a/packages/nc-gui/components/project/spreadsheet/components/editableCell/editableAttachmentCell.vue +++ b/packages/nc-gui/components/project/spreadsheet/components/editableCell/editableAttachmentCell.vue @@ -78,12 +78,14 @@ > - - - mdi-link-variant - - Attach File - +
+ + + mdi-link-variant + + Attach File + +
@@ -97,6 +99,9 @@ mdi-close-circle + + mdi-download +

{{ item.title }} + + mdi-download +

-
import { isImage } from '@/components/project/spreadsheet/helpers/imageExt' - +import FileSaver from 'file-saver' export default { name: 'EditableAttachmentCell', props: ['dbAlias', 'value', 'active', 'isLocked', 'meta', 'column'], @@ -299,6 +306,9 @@ export default { this.$emit('input', JSON.stringify(this.localState)) this.$emit('update') }, + downloadItem(item) { + FileSaver.saveAs(item.url, item.title) + }, onArrowDown(e) { if (!this.showImage) { return @@ -321,7 +331,7 @@ export default { } -