mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
add function to copy data to drag transfer event (#51)
This commit is contained in:
committed by
Kyle Spearrin
parent
669f6ddf93
commit
2c45978286
@@ -175,6 +175,10 @@ export class ViewComponent implements OnDestroy, OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setTextDataOnDrag(event: DragEvent, data: string) {
|
||||||
|
event.dataTransfer.setData('text', data);
|
||||||
|
}
|
||||||
|
|
||||||
async downloadAttachment(attachment: AttachmentView) {
|
async downloadAttachment(attachment: AttachmentView) {
|
||||||
const a = (attachment as any);
|
const a = (attachment as any);
|
||||||
if (a.downloading) {
|
if (a.downloading) {
|
||||||
|
|||||||
Reference in New Issue
Block a user