#189 Fix upload test

This commit is contained in:
mauriziovitale84
2016-06-15 13:09:00 +01:00
parent bb0cbd9683
commit 604c1c7eba
18 changed files with 682 additions and 90 deletions

View File

@@ -60,17 +60,21 @@ export class FileUploadingDialogComponent implements OnInit{
}
ngOnInit() {
this._uploaderService.filesUpload$.subscribe((fileList: FileModel[]) => {
this.filesUploadingList = fileList;
if (this.filesUploadingList.length > 0) {
this.isDialogActive = true;
if(this._uploaderService.filesUpload$) {
this._uploaderService.filesUpload$.subscribe((fileList: FileModel[]) => {
this.filesUploadingList = fileList;
if (this.filesUploadingList.length > 0) {
this.isDialogActive = true;
this.cd.detectChanges();
}
});
}
if(this._uploaderService.totalCompleted$) {
this._uploaderService.totalCompleted$.subscribe((total: number) => {
this.totalCompleted = total;
this.cd.detectChanges();
}
});
this._uploaderService.totalCompleted$.subscribe((total: number) => {
this.totalCompleted = total;
this.cd.detectChanges();
});
});
}
}
/**