From eff08c2c714954f50c332accf6b756dc3afb3407 Mon Sep 17 00:00:00 2001 From: "tomek.hanaj" Date: Mon, 16 Dec 2024 11:30:43 +0100 Subject: [PATCH] passing data to created component, removed obsolete files --- .../components/screen-cloud/screen-cloud.component.scss | 3 --- .../components/screen-cloud/screen-cloud.component.ts | 9 +++++++++ .../user-task-cloud-buttons.component.scss | 3 --- 3 files changed, 9 insertions(+), 6 deletions(-) delete mode 100644 lib/process-services-cloud/src/lib/screen/components/screen-cloud/screen-cloud.component.scss delete mode 100644 lib/process-services-cloud/src/lib/task/task-form/components/user-task-cloud-buttons/user-task-cloud-buttons.component.scss diff --git a/lib/process-services-cloud/src/lib/screen/components/screen-cloud/screen-cloud.component.scss b/lib/process-services-cloud/src/lib/screen/components/screen-cloud/screen-cloud.component.scss deleted file mode 100644 index d16f66ad28..0000000000 --- a/lib/process-services-cloud/src/lib/screen/components/screen-cloud/screen-cloud.component.scss +++ /dev/null @@ -1,3 +0,0 @@ -div { - background-color: inherit; -} diff --git a/lib/process-services-cloud/src/lib/screen/components/screen-cloud/screen-cloud.component.ts b/lib/process-services-cloud/src/lib/screen/components/screen-cloud/screen-cloud.component.ts index 1684fe789c..968a4bc308 100644 --- a/lib/process-services-cloud/src/lib/screen/components/screen-cloud/screen-cloud.component.ts +++ b/lib/process-services-cloud/src/lib/screen/components/screen-cloud/screen-cloud.component.ts @@ -51,6 +51,15 @@ export class ScreenCloudComponent implements OnInit { this.screenComponent = { type: this.screenId }; const componentType = this.screenRenderingService.resolveComponentType(this.screenComponent); this.componentRef = this.container.createComponent(componentType); + if (this.taskId) { + this.componentRef.setInput('taskId', this.taskId); + } + if (this.appName) { + this.componentRef.setInput('appName', this.appName); + } + if (this.screenId) { + this.componentRef.setInput('screenId', this.screenId); + } } } } diff --git a/lib/process-services-cloud/src/lib/task/task-form/components/user-task-cloud-buttons/user-task-cloud-buttons.component.scss b/lib/process-services-cloud/src/lib/task/task-form/components/user-task-cloud-buttons/user-task-cloud-buttons.component.scss deleted file mode 100644 index d16f66ad28..0000000000 --- a/lib/process-services-cloud/src/lib/task/task-form/components/user-task-cloud-buttons/user-task-cloud-buttons.component.scss +++ /dev/null @@ -1,3 +0,0 @@ -div { - background-color: inherit; -}