diff --git a/client/imports/app/parties/parties-upload.component.ts b/client/imports/app/parties/parties-upload.component.ts index 8b40f3284..f2ad44d98 100644 --- a/client/imports/app/parties/parties-upload.component.ts +++ b/client/imports/app/parties/parties-upload.component.ts @@ -1,4 +1,4 @@ -import {Component, OnInit} from '@angular/core'; +import {Component, OnInit, EventEmitter, Output} from '@angular/core'; import template from './parties-upload.component.html'; import style from './parties-upload.component.scss'; @@ -21,6 +21,7 @@ export class PartiesUploadComponent implements OnInit { files: Subject = new Subject(); thumbsSubscription: Subscription; thumbs: Observable; + @Output() onFile: EventEmitter = new EventEmitter(); constructor() {} @@ -65,5 +66,6 @@ export class PartiesUploadComponent implements OnInit { addFile(file) { this.filesArray.push(file._id); this.files.next(this.filesArray); + this.onFile.emit(file._id); } } \ No newline at end of file