aboutsummaryrefslogtreecommitdiffstats
path: root/ui-react/src/components/dialogs
diff options
context:
space:
mode:
authorsebdet <sebastien.determe@intl.att.com>2020-04-02 15:31:34 +0200
committersebdet <sebastien.determe@intl.att.com>2020-04-02 15:31:34 +0200
commit84242153b1d2ae1cd55be003b4a45730a3f68a04 (patch)
treee8f76c2a43f0ad388effe597f274e4f2e2860297 /ui-react/src/components/dialogs
parentaea6b2fe2418411a039c85d0673f5e392010a251 (diff)
Fix bug in Create loop UI
Fix the missing SVG representing the loop template in the Create loop dialog Issue-ID: CLAMP-811 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Id74855e2935130337bc852df79b3a9fed0d444ac
Diffstat (limited to 'ui-react/src/components/dialogs')
-rw-r--r--ui-react/src/components/dialogs/Loop/CreateLoopModal.js2
-rw-r--r--ui-react/src/components/dialogs/Tosca/ViewLoopTemplatesModal.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/ui-react/src/components/dialogs/Loop/CreateLoopModal.js b/ui-react/src/components/dialogs/Loop/CreateLoopModal.js
index e3820779..c5762a8d 100644
--- a/ui-react/src/components/dialogs/Loop/CreateLoopModal.js
+++ b/ui-react/src/components/dialogs/Loop/CreateLoopModal.js
@@ -72,7 +72,7 @@ export default class CreateLoopModal extends React.Component {
handleDropdownListChange(e) {
this.setState({ chosenTemplateName: e.value });
- TemplateService.getBlueprintMicroServiceTemplates(e.value).then(svgXml => {
+ TemplateService.getBlueprintMicroServiceTemplateSvg(e.value).then(svgXml => {
if (svgXml.length !== 0) {
this.setState({ content: svgXml })
} else {
diff --git a/ui-react/src/components/dialogs/Tosca/ViewLoopTemplatesModal.js b/ui-react/src/components/dialogs/Tosca/ViewLoopTemplatesModal.js
index 18c44404..cec6722d 100644
--- a/ui-react/src/components/dialogs/Tosca/ViewLoopTemplatesModal.js
+++ b/ui-react/src/components/dialogs/Tosca/ViewLoopTemplatesModal.js
@@ -113,7 +113,7 @@ export default class ViewLoopTemplatesModal extends React.Component {
getBlueprintMicroServiceTemplate(templateName) {
if (typeof templateName !== "undefined") {
- TemplateService.getBlueprintMicroServiceTemplate(templateName).then(svgXml => {
+ TemplateService.getBlueprintMicroServiceTemplateSvg(templateName).then(svgXml => {
if (svgXml.length !== 0) {
this.setState({ content: svgXml })
} else {