Skip to content

Commit

Permalink
Merge pull request #232 from Yi-Jacob/deployment-05/16-fixes-3
Browse files Browse the repository at this point in the history
Deployment 05/16 fixes 3
  • Loading branch information
thekevinm authored May 16, 2024
2 parents 1016df2 + 43d40e0 commit 97b1a93
Showing 1 changed file with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,10 @@ export class DfServiceDetailsComponent implements OnInit {
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;
Expand Down Expand Up @@ -198,12 +201,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) {
Expand Down

0 comments on commit 97b1a93

Please sign in to comment.