aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/main/webapp/app/vid/scripts/controller/InstantiationController.js
diff options
context:
space:
mode:
authorOfir Sonsino <os0695@att.com>2017-09-20 13:20:42 +0300
committerOfir Sonsino <os0695@att.com>2017-09-20 13:37:03 +0300
commit9dfd7e28c1eb348fcb4a2de8c6faae2a01b34942 (patch)
treec273862f59b0b64c19ccfea5f59ab574071cb323 /vid-app-common/src/main/webapp/app/vid/scripts/controller/InstantiationController.js
parentc3722d135481cfab5978c84853d8229d1e7d9cb3 (diff)
Global Read only role, Support VID specific Roles
Issue-ID: VID-46 , VID-47 Change-Id: Ib100d20ac40a65d39e27a6e2741b19a173a2b8ea Signed-off-by: Ofir Sonsino <os0695@att.com>
Diffstat (limited to 'vid-app-common/src/main/webapp/app/vid/scripts/controller/InstantiationController.js')
-rwxr-xr-xvid-app-common/src/main/webapp/app/vid/scripts/controller/InstantiationController.js18
1 files changed, 14 insertions, 4 deletions
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/controller/InstantiationController.js b/vid-app-common/src/main/webapp/app/vid/scripts/controller/InstantiationController.js
index dcbf3e6ef..b0fcb11e2 100755
--- a/vid-app-common/src/main/webapp/app/vid/scripts/controller/InstantiationController.js
+++ b/vid-app-common/src/main/webapp/app/vid/scripts/controller/InstantiationController.js
@@ -33,8 +33,9 @@
$scope.defaultBaseUrl = "";
$scope.responseTimeoutMsec = 60000;
$scope.properties = UtilityService.getProperties();
- $scope.init = function() {
+ $scope.isPermitted = $location.search().isPermitted;
+ $scope.init = function() {
/*
* These 2 statements should be included in non-test code.
*/
@@ -46,7 +47,7 @@
var polls = PropertyService.retrieveMsoMaxPolls();
PropertyService.setMsoMaxPolls(polls);
- PropertyService.setServerResponseTimeoutMsec(10000);
+ PropertyService.setServerResponseTimeoutMsec(30000);
/*
* Common parameters that shows an example of how the view edit screen
@@ -224,11 +225,17 @@
console.log("Removing Service " + $scope.service.instance.name);
- DataService.setALaCarte (true);
+ if ( $scope.isMacro() ) {
+ DataService.setALaCarte (false);
+ }
+ else {
+ DataService.setALaCarte (true);
+ }
+ DataService.setMacro($scope.isMacro());
DataService.setInventoryItem(serviceInstance);
DataService.setModelInfo(COMPONENT.SERVICE, {
- "modelInvariantId": serviceInstance[FIELD.ID.MODEL_INVAR_ID],
+ "modelInvariantId": $scope.service.model.service.invariantUuid,
"modelVersion": $scope.service.model.service.version,
"modelNameVersionId": $scope.service.model.service.uuid,
"modelName": $scope.service.model.service.name,
@@ -345,6 +352,9 @@
$scope.deleteVnf = function(serviceObject, vnf) {
+
+ debugger;
+
console.log("Removing VNF " + vnf.name);
var serviceInstance = serviceObject.object;