diff options
author | Christophe Closset <christophe.closset@intl.att.com> | 2020-04-02 13:42:56 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-04-02 13:42:56 +0000 |
commit | 6273ed4047c866f73664b6f0b94f22170ab53cd3 (patch) | |
tree | f3914b6debcc85268a24137449b8c4a080e60e57 /ui-react/src/api/TemplateService.js | |
parent | 8d446271551b11cac19a4f2c848c648f542bf721 (diff) | |
parent | 84242153b1d2ae1cd55be003b4a45730a3f68a04 (diff) |
Merge "Fix bug in Create loop UI"
Diffstat (limited to 'ui-react/src/api/TemplateService.js')
-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 {}; }); } |