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
coderkk authored and Rokt33r committed Dec 17, 2020
1 parent d92c111 commit 6fb01b6
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 6fb01b6

Please sign in to comment.