rename from hasTemplates to isInstantiationTemplateExists in browse SDC 31/100231/1
authorEylon Malin <eylon.malin@intl.att.com>
Sun, 12 Jan 2020 10:30:08 +0000 (12:30 +0200)
committerEylon Malin <eylon.malin@intl.att.com>
Sun, 12 Jan 2020 10:30:08 +0000 (12:30 +0200)
Issue-ID: VID-741
Signed-off-by: Eylon Malin <eylon.malin@intl.att.com>
Change-Id: I44b45319c3f05d7480c4842198ee05c4664ad028

vid-app-common/src/main/webapp/app/vid/scripts/controller/ServiceModelController.js
vid-app-common/src/main/webapp/app/vid/scripts/controller/creationDialogController.js
vid-app-common/src/main/webapp/app/vid/scripts/services/dataService.js

index 1b64573..a540d16 100755 (executable)
                 viewPerPage: $scope.viewPerPage,
                 currentPage: $scope.currentPage
                        };
-                       DataService.setHasTemplate(service.hasTemplate);
+                       DataService.setIsInstantiationTemplateExists(service.isInstantiationTemplateExists);
                        sessionStorage.setItem("searchKey",JSON.stringify(searchKey));
 
                        console.log("Instantiating SDC service " + service.uuid);
index 002bcb9..91d805b 100755 (executable)
@@ -93,7 +93,7 @@ var creationDialogController = function (COMPONENT, FIELD, PARAMETER, $scope, $h
 
 
         if (!$scope.shouldShowOldPopup()) {
-            if(DataService.getHasTemplate()){
+            if(DataService.getIsInstantiationTemplateExists()){
                 $scope.url = COMPONENT.INSTANTIATION_TEMPLATES_IFRAME_URL + request.modelNameVersionId;
                 window.addEventListener("message", receiveMessage, false);
             }else {
index 10c4277..1e539ac 100755 (executable)
@@ -320,11 +320,11 @@ var DataService = function($log, DataService) {
                setOwningEntityProperties: function (properties) {
                                _this.owningEntityProperties = properties;
                },
-               getHasTemplate: function () {
-                               return _this.hasTemplate;
+               getIsInstantiationTemplateExists: function () {
+                               return _this.isInstantiationTemplateExists;
                },
-               setHasTemplate: function (hasTemplate) {
-                               _this.hasTemplate = hasTemplate;
+               setIsInstantiationTemplateExists: function (isInstantiationTemplateExists) {
+                               _this.isInstantiationTemplateExists = isInstantiationTemplateExists;
                }
        };
 };