diff options
author | sebdet <sebastien.determe@intl.att.com> | 2020-04-02 15:31:34 +0200 |
---|---|---|
committer | sebdet <sebastien.determe@intl.att.com> | 2020-04-02 15:31:34 +0200 |
commit | 84242153b1d2ae1cd55be003b4a45730a3f68a04 (patch) | |
tree | e8f76c2a43f0ad388effe597f274e4f2e2860297 /ui-react/src/api | |
parent | aea6b2fe2418411a039c85d0673f5e392010a251 (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/api')
-rw-r--r-- | ui-react/src/api/TemplateService.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ui-react/src/api/TemplateService.js b/ui-react/src/api/TemplateService.js index 615a87e96..eddd58dff 100644 --- a/ui-react/src/api/TemplateService.js +++ b/ui-react/src/api/TemplateService.js @@ -55,19 +55,19 @@ export default class TemplateService { }); } - static getBlueprintMicroServiceTemplate(templateName) { + static getBlueprintMicroServiceTemplateSvg(templateName) { return fetch('/restservices/clds/v2/templates/' + templateName + ' /svgRepresentation', { method: 'GET', credentials: 'same-origin', }) .then(function (response) { - console.debug("getBlueprintMicroServiceTemplate response received: ", response.status); + console.debug("getBlueprintMicroServiceTemplateSvg response received: ", response.status); if (response.ok) { return response.text(); } else { - console.error("getBlueprintMicroServiceTemplates query failed"); + console.error("getBlueprintMicroServiceTemplateSvg query failed"); return {}; } }) .catch(function (error) { - console.error("getBlueprintMicroServiceTemplate error received", error); + console.error("getBlueprintMicroServiceTemplateSvg error received", error); return {}; }); } |