summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/directives/graphs-v2/composition-graph/utils/composition-graph-service-path-utils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-ui/src/app/directives/graphs-v2/composition-graph/utils/composition-graph-service-path-utils.ts')
-rw-r--r--catalog-ui/src/app/directives/graphs-v2/composition-graph/utils/composition-graph-service-path-utils.ts40
1 files changed, 20 insertions, 20 deletions
diff --git a/catalog-ui/src/app/directives/graphs-v2/composition-graph/utils/composition-graph-service-path-utils.ts b/catalog-ui/src/app/directives/graphs-v2/composition-graph/utils/composition-graph-service-path-utils.ts
index 1a348912fc..48befef22d 100644
--- a/catalog-ui/src/app/directives/graphs-v2/composition-graph/utils/composition-graph-service-path-utils.ts
+++ b/catalog-ui/src/app/directives/graphs-v2/composition-graph/utils/composition-graph-service-path-utils.ts
@@ -19,34 +19,34 @@
*/
import * as _ from "lodash";
-import {LoaderService} from "app/services";
-import {CompositionGraphGeneralUtils} from "./composition-graph-general-utils";
-import {ICompositionGraphScope} from "../composition-graph.directive";
-import {ServiceServiceNg2} from 'app/ng2/services/component-services/service.service';
-import {Service} from "../../../../models/components/service";
-import {ForwardingPath} from "app/models/forwarding-path";
-import {ForwardingPathLink} from "app/models/forwarding-path-link";
-import {CompositionCiServicePathLink} from "../../../../models/graph/graph-links/composition-graph-links/composition-ci-service-path-link";
-import {CommonGraphUtils} from "app/directives/graphs-v2/common/common-graph-utils";
+import { LoaderService } from "app/services";
+import { CompositionGraphGeneralUtils } from "./composition-graph-general-utils";
+import { ICompositionGraphScope } from "../composition-graph.directive";
+import { ServiceServiceNg2 } from 'app/ng2/services/component-services/service.service';
+import { Service } from "../../../../models/components/service";
+import { ForwardingPath } from "app/models/forwarding-path";
+import { ForwardingPathLink } from "app/models/forwarding-path-link";
+import { CompositionCiServicePathLink } from "../../../../models/graph/graph-links/composition-graph-links/composition-ci-service-path-link";
+import { CommonGraphUtils } from "app/directives/graphs-v2/common/common-graph-utils";
export class ServicePathGraphUtils {
constructor(
- private loaderService:LoaderService,
- private generalGraphUtils:CompositionGraphGeneralUtils,
- private serviceService:ServiceServiceNg2,
- private commonGraphUtils:CommonGraphUtils
- ) {}
+ private loaderService: LoaderService,
+ private generalGraphUtils: CompositionGraphGeneralUtils,
+ private serviceService: ServiceServiceNg2,
+ private commonGraphUtils: CommonGraphUtils
+ ) { }
- public deletePathsFromGraph(cy: Cy.Instance, service:Service){
- cy.remove(`[type="${CompositionCiServicePathLink.LINK_TYPE}"]`);
+ public deletePathsFromGraph(cy: Cy.Instance, service: Service) {
+ cy.remove(`[type="${CompositionCiServicePathLink.LINK_TYPE}"]`);
}
-
- public drawPath(cy: Cy.Instance, forwardingPath: ForwardingPath, service:Service) {
+
+ public drawPath(cy: Cy.Instance, forwardingPath: ForwardingPath, service: Service) {
let pathElements = forwardingPath.pathElements.listToscaDataDefinition;
_.forEach(pathElements, (link: ForwardingPathLink) => {
- let data:CompositionCiServicePathLink = new CompositionCiServicePathLink(link);
+ let data: CompositionCiServicePathLink = new CompositionCiServicePathLink(link);
data.source = _.find(
service.componentInstances,
instance => instance.name === data.forwardingPathLink.fromNode
@@ -61,7 +61,7 @@ export class ServicePathGraphUtils {
});
}
- public createOrUpdateServicePath = (scope:ICompositionGraphScope, path: any): void => {
+ public createOrUpdateServicePath = (scope: ICompositionGraphScope, path: any): void => {
let service = <Service>scope.component;
this.loaderService.showLoader('composition-graph');