diff options
author | sebdet <sebastien.determe@intl.att.com> | 2019-04-29 18:50:46 +0200 |
---|---|---|
committer | sebdet <sebastien.determe@intl.att.com> | 2019-04-29 18:50:46 +0200 |
commit | 9507b7416ee595eb59e25c6797f3720c0a89767c (patch) | |
tree | e780adccb56a1e94364571f9d8a6964873d0e40a /src/main | |
parent | c7e23eae162aa059bea8c9d13556d3931520f17b (diff) |
Fix bad microservice window
Fix the bug where operational policy window is opened in the UI instead
of the right microservice one
Issue-ID: CLAMP-364
Change-Id: I2fd64f0dd2de54e8498f4cdce2c55fd912fd5f21
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/onap/clamp/clds/util/drawing/SvgFacade.java | 2 | ||||
-rw-r--r-- | src/main/resources/META-INF/resources/designer/scripts/CldsModelService.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/onap/clamp/clds/util/drawing/SvgFacade.java b/src/main/java/org/onap/clamp/clds/util/drawing/SvgFacade.java index f5bd6e79d..f7bf92bfd 100644 --- a/src/main/java/org/onap/clamp/clds/util/drawing/SvgFacade.java +++ b/src/main/java/org/onap/clamp/clds/util/drawing/SvgFacade.java @@ -41,7 +41,7 @@ public class SvgFacade { Painter p = new Painter(svgGraphics2D, dp); ClampGraphBuilder cgp = new ClampGraphBuilder(p).collector("VES"); cgp.addAllMicroServices(microServicesChain); - ClampGraph cg = cgp.policy("Policy").build(); + ClampGraph cg = cgp.policy("OperationalPolicy").build(); return cg.getAsSVG(); } diff --git a/src/main/resources/META-INF/resources/designer/scripts/CldsModelService.js b/src/main/resources/META-INF/resources/designer/scripts/CldsModelService.js index 34e90e632..38cdc9388 100644 --- a/src/main/resources/META-INF/resources/designer/scripts/CldsModelService.js +++ b/src/main/resources/META-INF/resources/designer/scripts/CldsModelService.js @@ -34,7 +34,7 @@ app //This will open the methods located in the app.js if (undefined == name) { return; - }else if (name.toLowerCase().indexOf("policy") >= 0){ + }else if (name === "OperationalPolicy"){ PolicyWindow(); } else { $rootScope.selectedBoxName = name; |