diff options
author | Eylon Malin <eylon.malin@intl.att.com> | 2020-01-12 14:35:39 +0200 |
---|---|---|
committer | Yoav Schneiderman <yoav.schneiderman@intl.att.com> | 2020-01-15 10:25:35 +0200 |
commit | 022efbf54ddd662ede2d000a847ed02ca6d05d97 (patch) | |
tree | 9cb73f42b8bd40728586df0abadc4d833be9d886 /vid-app-common/src | |
parent | 6876eba3d0b43b01eb303a0d530fe45712f33d74 (diff) |
fix open modern ui from Create new service instance flow
Issue-ID: VID-724
Change-Id: I804aadce8fcdf888ef4364e474e8cc229b158920
Signed-off-by: Eylon Malin <eylon.malin@intl.att.com>
Signed-off-by: Yoav Schneiderman <yoav.schneiderman@intl.att.com>
Diffstat (limited to 'vid-app-common/src')
-rwxr-xr-x | vid-app-common/src/main/webapp/app/vid/scripts/controller/creationDialogController.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/controller/creationDialogController.js b/vid-app-common/src/main/webapp/app/vid/scripts/controller/creationDialogController.js index 7b6d4af6c..a6f6cc69d 100755 --- a/vid-app-common/src/main/webapp/app/vid/scripts/controller/creationDialogController.js +++ b/vid-app-common/src/main/webapp/app/vid/scripts/controller/creationDialogController.js @@ -93,11 +93,14 @@ var creationDialogController = function (COMPONENT, FIELD, PARAMETER, $scope, $h if (!$scope.shouldShowOldPopup()) { + let modelNameVersionId = request.modelNameVersionId ? + request.modelNameVersionId : + (DataService.getModelInfo(COMPONENT.SERVICE) ? DataService.getModelInfo(COMPONENT.SERVICE).modelNameVersionId : ""); if(DataService.getIsInstantiationTemplateExists()){ - $scope.url = COMPONENT.INSTANTIATION_TEMPLATES_IFRAME_URL + request.modelNameVersionId; + $scope.url = COMPONENT.INSTANTIATION_TEMPLATES_IFRAME_URL + modelNameVersionId; window.addEventListener("message", receiveMessage, false); }else { - $scope.url = COMPONENT.SERVICE_POPUP_IFRAME_URL + request.modelNameVersionId + "&isCreate=true&r=" + Math.random(); + $scope.url = COMPONENT.SERVICE_POPUP_IFRAME_URL + modelNameVersionId + "&isCreate=true&r=" + Math.random(); window.addEventListener("message", receiveMessage, false); } } |