diff --git a/packages/nc-gui/components/cell/attachment/Modal.vue b/packages/nc-gui/components/cell/attachment/Modal.vue index 2f8d35e9d5..f36f97e9dd 100644 --- a/packages/nc-gui/components/cell/attachment/Modal.vue +++ b/packages/nc-gui/components/cell/attachment/Modal.vue @@ -53,6 +53,23 @@ function onClick(item: Record) { } }) } + +function onRemoveFileClick(title: any, i: number) { + Modal.confirm({ + title: `Do you want to delete '${title}'?`, + wrapClassName: 'nc-modal-attachment-delete', + okText: 'Yes', + okType: 'danger', + cancelText: 'No', + async onOk() { + try { + removeFile(i) + } catch (e: any) { + message.error(e.message) + } + }, + }) +}