diff options
author | MichaelMorris <michael.morris@est.tech> | 2022-08-13 09:06:08 +0100 |
---|---|---|
committer | MichaelMorris <michael.morris@est.tech> | 2022-08-15 10:25:17 +0100 |
commit | cc764ab040ec1c278d8619d2d92be638d8f585e8 (patch) | |
tree | 23af29059bcc8f1e38ded05d02cf11cf8d99f5f0 /catalog-ui/src/app/services/components/component-service.ts | |
parent | 6bbf79ac50acb21e7e4ceb8c613eb4ecc872aa3d (diff) |
Fix new data types not found in UI
Also, fixed issue with data type sorting when there are mutliple layers in dependency hierarchy
Signed-off-by: MichaelMorris <michael.morris@est.tech>
Issue-ID: SDC-4129
Change-Id: I4d535420953237efd610a3fb1dd6b9d40883e514
Diffstat (limited to 'catalog-ui/src/app/services/components/component-service.ts')
-rw-r--r-- | catalog-ui/src/app/services/components/component-service.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/catalog-ui/src/app/services/components/component-service.ts b/catalog-ui/src/app/services/components/component-service.ts index 47eec26a77..35a49b209e 100644 --- a/catalog-ui/src/app/services/components/component-service.ts +++ b/catalog-ui/src/app/services/components/component-service.ts @@ -41,6 +41,7 @@ import { import {ComponentInstanceFactory, CommonUtils} from "app/utils"; import {SharingService} from "app/services-ng2"; import {ComponentMetadata} from "../../models/component-metadata"; +import { DataTypesService } from "app/services"; export interface IComponentService { @@ -99,6 +100,7 @@ export class ComponentService implements IComponentService { 'Restangular', 'sdcConfig', 'Sdc.Services.SharingService', + 'Sdc.Services.DataTypesService', '$q', '$base64' ]; @@ -106,6 +108,7 @@ export class ComponentService implements IComponentService { constructor(protected restangular:restangular.IElement, protected sdcConfig:IAppConfigurtaion, protected sharingService:SharingService, + protected dataTypeService:DataTypesService, protected $q:ng.IQService, protected $base64:any ) { @@ -233,6 +236,7 @@ export class ComponentService implements IComponentService { let headerObj = this.getHeaderMd5(component); this.restangular.customPOST(JSON.stringify(component), 'importService', {}, headerObj).then((response: Component) => { let component: Component = this.createComponentObject(response); + this.dataTypeService.loadDataTypesCache(component.model); deferred.resolve(component); }, (err) => { deferred.reject(err); |