[ADF-1981] Continous loading of task details if task list is empty

This commit is contained in:
Eugenio Romano
2017-11-22 17:32:37 +00:00
parent 01ff35a786
commit 7870772fbd
3 changed files with 26 additions and 27 deletions

View File

@@ -42,9 +42,10 @@ export class TaskAttachmentListComponent implements OnChanges, AfterViewInit {
@Output()
error: EventEmitter<any> = new EventEmitter<any>();
hasCustomTemplate: boolean;
hasCustomTemplate: boolean = false;
@ViewChild('customEmptyListTemplate') customTemplateRef: ElementRef;
@ViewChild('customEmptyListTemplate')
customTemplateRef: ElementRef;
attachments: any[] = [];
isLoading: boolean = true;
@@ -66,7 +67,7 @@ export class TaskAttachmentListComponent implements OnChanges, AfterViewInit {
this.customTemplateRef.nativeElement.children && this.customTemplateRef.nativeElement.children.length > 0) {
this.hasCustomTemplate = true;
}
}
}
reset(): void {
this.attachments = [];