Service mgr bug fix
authorseshukm <seshu.kumar.m@huawei.com>
Mon, 3 Apr 2017 15:05:31 +0000 (20:35 +0530)
committerseshukm <seshu.kumar.m@huawei.com>
Mon, 3 Apr 2017 15:05:31 +0000 (20:35 +0530)
IssueID : CLIENT-189

Change-Id: I8a07ff17a820ffd2444ad5db86835cb4feaf9223
Signed-off-by: seshukm <seshu.kumar.m@huawei.com>
lifecyclemgr/src/main/webapp/lifecyclemgr/js/app.js

index 6c3dac4..78233c7 100644 (file)
@@ -286,19 +286,19 @@ var app = angular.module("lcApp", ["ui.router", "ngTable"])/*, 'ui.bootstrap', '
                 .then(function (tmplatesResponse) {\r
                     console.log("Data Template :: ");\r
                     $log.info(tmplatesResponse);\r
-                   // var templatesInfo = translateToTemplatesInfo(tmplatesResponse);\r
-                  //  document.getElementById("svcTempl").innerHTML = templatesInfo;\r
-                    $scope.optionsValue = tmplatesResponse;\r
+                    var templatesInfo = translateToTemplatesInfo(tmplatesResponse);\r
+                    document.getElementById("svcTempl").innerHTML = templatesInfo;\r
+                   /* $scope.optionsValue = tmplatesResponse;\r
                     var dropSimple_data = {\r
                         "errmsg" : "Service template is required.",\r
                         "modalVar" : "lifecycleData.optSelect",\r
                         "labelField" : "templateName",\r
-                        "optionsValue" : JSON.stringify(tmplatesResponse),\r
+                        "optionsValue" : JSON.stringify(templatesInfo),\r
                         "errtag":"lcdropdownErr",\r
                         "errfunc":"validatedropdown",\r
                         "required":true\r
-                    }\r
-                   $('#myModal #plainDropDown').html($compile(Mustache.to_html(dropDown, dropSimple_data))($scope));\r
+                    }*/\r
+                   //$('#myModal #plainDropDown').html($compile(Mustache.to_html(dropDown, dropSimple_data))($scope));\r
                 }, function (reason) {\r
                     $scope.error = "Error ! " + reason;\r
                 });\r