Skip to content

Commit

Permalink
Copy the attachment name in attachment page
Browse files Browse the repository at this point in the history
  • Loading branch information
yhlai committed Dec 5, 2020
1 parent 1c07ff0 commit 5b5fecc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/components/organisms/AttachmentList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { values } from '../../lib/db/utils'
import { downloadBlob } from '../../lib/download'
import { openNew } from '../../lib/platform'
import { openContextMenu } from '../../lib/electronOnly'
import copy from 'copy-to-clipboard'

const ListContainer = styled.div`
display: flex;
Expand Down Expand Up @@ -85,6 +86,13 @@ const AttachmentListItem = ({
openNew(data.src)
},
},
{
type: 'normal',
label: 'Copy Attachment Name',
click: () => {
copy(attachment.name);
},
},
{
type: 'normal',
label: 'Remove Attachment',
Expand Down

0 comments on commit 5b5fecc

Please sign in to comment.