Skip to content

Commit

Permalink
Merge branch 'Ibrahim-Islam-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
valorkin committed May 12, 2016
2 parents 378a0e1 + 893618d commit a5fd840
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/file-upload/file-drop.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { FileUploader } from './file-uploader.class';
export class FileDropDirective {
@Input() public uploader:FileUploader;
@Output() public fileOver:EventEmitter<any> = new EventEmitter();
@Output() public onFileDrop:EventEmitter<File> = new EventEmitter();

private element:ElementRef;
public constructor(element:ElementRef) {
Expand All @@ -32,6 +33,7 @@ export class FileDropDirective {
this._preventAndStop(event);
this.uploader.addToQueue(transfer.files, options, filters);
this.fileOver.emit(false);
this.onFileDrop.emit(transfer.files[0]);
}

@HostListener('dragover', ['$event'])
Expand Down

0 comments on commit a5fd840

Please sign in to comment.