add function to copy data to drag transfer event (#51)

This commit is contained in:
Veit-Hendrik Schlenker 2019-10-20 03:14:53 +02:00 committed by Kyle Spearrin
parent 669f6ddf93
commit 2c45978286
1 changed files with 4 additions and 0 deletions

View File

@ -175,6 +175,10 @@ export class ViewComponent implements OnDestroy, OnInit {
}
}
setTextDataOnDrag(event: DragEvent, data: string) {
event.dataTransfer.setData('text', data);
}
async downloadAttachment(attachment: AttachmentView) {
const a = (attachment as any);
if (a.downloading) {