summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/services/components/resource-service.ts
diff options
context:
space:
mode:
authorMichaelMorris <michael.morris@est.tech>2022-08-13 09:06:08 +0100
committerMichaelMorris <michael.morris@est.tech>2022-08-15 10:25:17 +0100
commitcc764ab040ec1c278d8619d2d92be638d8f585e8 (patch)
tree23af29059bcc8f1e38ded05d02cf11cf8d99f5f0 /catalog-ui/src/app/services/components/resource-service.ts
parent6bbf79ac50acb21e7e4ceb8c613eb4ecc872aa3d (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/resource-service.ts')
-rw-r--r--catalog-ui/src/app/services/components/resource-service.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/catalog-ui/src/app/services/components/resource-service.ts b/catalog-ui/src/app/services/components/resource-service.ts
index 9481736152..a1e95de199 100644
--- a/catalog-ui/src/app/services/components/resource-service.ts
+++ b/catalog-ui/src/app/services/components/resource-service.ts
@@ -26,6 +26,7 @@ import * as _ from "lodash";
import {IComponentService, ComponentService} from "./component-service";
import {PropertyModel, IAppConfigurtaion, Resource, Component} from "../../models";
import {SharingService} from "app/services-ng2";
+import { DataTypesService } from "app/services";
export interface IResourceService extends IComponentService {
updateResourceGroupProperties(uniqueId:string, groupId:string, properties:Array<PropertyModel>):ng.IPromise<Array<PropertyModel>>
@@ -37,6 +38,7 @@ export class ResourceService extends ComponentService implements IResourceServic
'Restangular',
'sdcConfig',
'Sdc.Services.SharingService',
+ 'Sdc.Services.DataTypesService',
'$q',
'$base64'
];
@@ -44,10 +46,11 @@ export class ResourceService extends ComponentService implements IResourceServic
constructor(protected restangular:restangular.IElement,
protected sdcConfig:IAppConfigurtaion,
protected sharingService:SharingService,
+ protected dataTypeService:DataTypesService,
protected $q:ng.IQService,
protected $base64:any
) {
- super(restangular, sdcConfig, sharingService, $q, $base64);
+ super(restangular, sdcConfig, sharingService, dataTypeService, $q, $base64);
this.restangular = restangular.one("resources");
}