From b1c7f1dc29c354a4b0d5be2b26d51a9d87c4d180 Mon Sep 17 00:00:00 2001 From: Yi-Jacob Date: Thu, 16 May 2024 15:27:22 -0500 Subject: [PATCH 1/2] Added service definition to Scripts --- .../df-service-details.component.ts | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/app/adf-services/df-service-details/df-service-details.component.ts b/src/app/adf-services/df-service-details/df-service-details.component.ts index 6f848438..409e6b24 100644 --- a/src/app/adf-services/df-service-details/df-service-details.component.ts +++ b/src/app/adf-services/df-service-details/df-service-details.component.ts @@ -143,10 +143,14 @@ export class DfServiceDetailsComponent implements OnInit { ) ) .subscribe(({ env, route }) => { + console.log(route); if (route['groups'] && route['groups'][0] === 'Database') { this.isDatabase = true; } - if (route['groups'] && route['groups'][0] === 'Remote Service') { + if ( + (route['groups'] && route['groups'][0] === 'Remote Service') || + (route['groups'] && route['groups'][0] === 'Script') + ) { this.isNetworkService = true; } const { data, serviceTypes, groups } = route; @@ -198,12 +202,11 @@ export class DfServiceDetailsComponent implements OnInit { (this.serviceDefinition = data?.serviceDocByServiceId.content), this.serviceForm.controls['type'].disable(); } else { - (this.serviceDefinition = data?.serviceDocByServiceId.content), - this.serviceForm.controls['type'].valueChanges.subscribe(value => { - this.serviceForm.removeControl('config'); - this.configSchema = this.getConfigSchema(value); - this.initializeConfig(); - }); + this.serviceForm.controls['type'].valueChanges.subscribe(value => { + this.serviceForm.removeControl('config'); + this.configSchema = this.getConfigSchema(value); + this.initializeConfig(); + }); } }); if (this.isDatabase) { From 43d40e0eac2f90e5f6e7c6528c2d2b26004aab70 Mon Sep 17 00:00:00 2001 From: Yi-Jacob Date: Thu, 16 May 2024 15:27:57 -0500 Subject: [PATCH 2/2] cleanup --- .../df-service-details/df-service-details.component.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/app/adf-services/df-service-details/df-service-details.component.ts b/src/app/adf-services/df-service-details/df-service-details.component.ts index 409e6b24..ad09f635 100644 --- a/src/app/adf-services/df-service-details/df-service-details.component.ts +++ b/src/app/adf-services/df-service-details/df-service-details.component.ts @@ -143,7 +143,6 @@ export class DfServiceDetailsComponent implements OnInit { ) ) .subscribe(({ env, route }) => { - console.log(route); if (route['groups'] && route['groups'][0] === 'Database') { this.isDatabase = true; }