From dc900a2e9b7fed1e4c6888eeb056eb72b5d9339e Mon Sep 17 00:00:00 2001 From: Baptiste Toulemonde <toulemonde@cines.fr> Date: Wed, 20 Oct 2021 12:37:51 +0200 Subject: [PATCH] retrieve catalog type --- src/app/publishapi/publishapi.component.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/publishapi/publishapi.component.ts b/src/app/publishapi/publishapi.component.ts index ace16d9bc..ce1088ca3 100644 --- a/src/app/publishapi/publishapi.component.ts +++ b/src/app/publishapi/publishapi.component.ts @@ -114,6 +114,7 @@ export class PublishApiComponent implements OnInit { this.openApi.info['x-catalog-id'] = catId; this.catalogSelect.selected = catId; this.onChangeRepository(catId); + this.type = this.getType(catId); } getTitleFromFdpApi(fdpApiResponse: FdpApiResponseItem[]): string { @@ -267,6 +268,7 @@ export class PublishApiComponent implements OnInit { this.openApi = this.openApiService.getFromString(reader.result as string); this.openApi.cleanServers(servers[0].url); this.openApi.info['x-catalog-id'] = catId; + this.type = this.getType(catId) }; reader.readAsText(jsonFile); -- GitLab