(types)
| 357 | hasDropButton: true, |
| 358 | isDisabled: !acceptedAttachmentTypes, |
| 359 | getDropOperation(types) { |
| 360 | return acceptedAttachmentTypes && types.has(acceptedAttachmentTypes) ? 'copy' : 'cancel'; |
| 361 | }, |
| 362 | async onDrop(e) { |
| 363 | let files = await Promise.all( |
| 364 | e.items |