From 8d982c7875f0f09d8b7386284e9811c45af9c7f8 Mon Sep 17 00:00:00 2001 From: Eugenio Romano Date: Thu, 23 Nov 2017 01:38:05 +0000 Subject: [PATCH] [ADF-1981] attachment task should not be in loading state by default --- .../attachment/task-attachment-list.component.spec.ts | 4 ++++ .../attachment/task-attachment-list.component.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/process-services/attachment/task-attachment-list.component.spec.ts b/lib/process-services/attachment/task-attachment-list.component.spec.ts index 80da68842c..f0b4b4f0e5 100644 --- a/lib/process-services/attachment/task-attachment-list.component.spec.ts +++ b/lib/process-services/attachment/task-attachment-list.component.spec.ts @@ -263,6 +263,10 @@ describe('TaskAttachmentList', () => { }); })); + it('loading should be false by default', () => { + expect(component.isLoading).toBeFalsy(); + }); + describe('change detection', () => { let change = new SimpleChange('123', '456', true); diff --git a/lib/process-services/attachment/task-attachment-list.component.ts b/lib/process-services/attachment/task-attachment-list.component.ts index b190c4f856..738dc79d5d 100644 --- a/lib/process-services/attachment/task-attachment-list.component.ts +++ b/lib/process-services/attachment/task-attachment-list.component.ts @@ -48,7 +48,7 @@ export class TaskAttachmentListComponent implements OnChanges, AfterViewInit { customTemplateRef: ElementRef; attachments: any[] = []; - isLoading: boolean = true; + isLoading: boolean = false; constructor(private activitiContentService: ProcessContentService, private contentService: ContentService,