From e5476ee97a0589135273860236e3a3c65fe6aa99 Mon Sep 17 00:00:00 2001 From: Vito Date: Thu, 31 May 2018 15:04:42 +0100 Subject: [PATCH] [ADF-3102] added lazy loading for tab content to fix animations (#3418) --- .../process-service/process-service.component.html | 4 ++-- .../components/process-service/process-service.component.ts | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/demo-shell/src/app/components/process-service/process-service.component.html b/demo-shell/src/app/components/process-service/process-service.component.html index b672d4aecb..6c2728cc43 100644 --- a/demo-shell/src/app/components/process-service/process-service.component.html +++ b/demo-shell/src/app/components/process-service/process-service.component.html @@ -1,6 +1,6 @@ -
+
@@ -104,7 +104,7 @@ -
+
diff --git a/demo-shell/src/app/components/process-service/process-service.component.ts b/demo-shell/src/app/components/process-service/process-service.component.ts index 3eb1432ab2..73849317fe 100644 --- a/demo-shell/src/app/components/process-service/process-service.component.ts +++ b/demo-shell/src/app/components/process-service/process-service.component.ts @@ -145,6 +145,9 @@ export class ProcessServiceComponent implements AfterViewInit, OnDestroy, OnInit presetColoum = 'default'; showProcessPagination = false; + showTaskTab = true; + showProcessTab = false; + fieldValidators = [ ...FORM_FIELD_VALIDATORS, new DemoFieldValidator() @@ -243,8 +246,10 @@ export class ProcessServiceComponent implements AfterViewInit, OnDestroy, OnInit const index = event.index; this.showProcessPagination = index === PROCESS_ROUTE; if (index === TASK_ROUTE) { + this.showTaskTab = event.index === this.tabs.tasks; this.relocateLocationToTask(); } else if (index === PROCESS_ROUTE) { + this.showProcessTab = event.index === this.tabs.processes; this.relocateLocationToProcess(); } else if (index === REPORT_ROUTE) { this.relocateLocationToReport();