mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
#139 Fixed complete counter
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { Component, ChangeDetectorRef } from 'angular2/core';
|
||||
import { Component, ChangeDetectorRef, OnInit } from 'angular2/core';
|
||||
import { FileModel } from '../models/file.model';
|
||||
import { FileUploadingListComponent } from './file-uploading-list.component';
|
||||
import { AlfrescoPipeTranslate } from 'ng2-alfresco-core/dist/ng2-alfresco-core';
|
||||
@@ -43,12 +43,14 @@ declare let __moduleName: string;
|
||||
host: {'[class.dialog-show]': 'toggleShowDialog'},
|
||||
pipes: [AlfrescoPipeTranslate]
|
||||
})
|
||||
export class FileUploadingDialogComponent {
|
||||
export class FileUploadingDialogComponent implements OnInit{
|
||||
|
||||
isDialogActive: boolean = false;
|
||||
|
||||
filesUploadingList: FileModel [];
|
||||
|
||||
totalCompleted: number = 0;
|
||||
|
||||
private _isDialogMinimized: boolean = false;
|
||||
|
||||
constructor(private cd: ChangeDetectorRef,
|
||||
@@ -62,6 +64,10 @@ export class FileUploadingDialogComponent {
|
||||
this.cd.detectChanges();
|
||||
}
|
||||
});
|
||||
this._uploaderService.totalCompleted$.subscribe((total: number) => {
|
||||
this.totalCompleted = total;
|
||||
this.cd.detectChanges();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user