Add flag flag_flash_more_actions_button_in_old_view_edit
[vid.git] / vid-app-common / src / main / webapp / app / vid / scripts / controller / InstantiationController.js
index 7fa312e..b3afcd8 100755 (executable)
         };\r
 \r
         $scope.allowTransferToNewScreenAndShowButton = function (){\r
-          if(featureFlags.isOn(COMPONENT.FEATURE_FLAGS.FLAG_FLASH_REPLACE_VF_MODULE)) {\r
-              return $scope.isPermitted && !($scope.isMacro());\r
+          if(featureFlags.isOn(COMPONENT.FEATURE_FLAGS.FLAG_FLASH_MORE_ACTIONS_BUTTON_IN_OLD_VIEW_EDIT)) {\r
+              return $scope.isPermitted;\r
           }\r
           return false;\r
         };\r
 \r
+        $scope.navigateToNewEditViewScreen = function(){\r
+                window.location.href = 'serviceModels.htm#/servicePlanning/EDIT?' +\r
+                    'serviceModelId=' +     _.get($scope, 'service.model.service.uuid') +\r
+                    '&subscriberId=' +      $location.search().subscriberId  +\r
+                    '&serviceType=' +       $location.search().serviceType      +\r
+                    '&serviceInstanceId=' + $location.search().serviceInstanceId;\r
+        };\r
+\r
         $scope.deleteService = function (serviceObject, serviceOrchestrationStatus) {\r
 \r
             var serviceInstance = serviceObject.object;\r