summaryrefslogtreecommitdiffstats
path: root/openecomp-ui/src/sdc-app/common/helpers
diff options
context:
space:
mode:
authormiriame <miriam.eini@amdocs.com>2018-01-02 15:35:55 +0200
committerAvi Gaffa <avi.gaffa@amdocs.com>2018-01-03 06:53:22 +0000
commitd411d156ac1960f059eb94ec5d7da8fa1a9edb86 (patch)
tree84bf021cfd81d8a61feda7839267ef2257cf011f /openecomp-ui/src/sdc-app/common/helpers
parent9d79007d2b36d5ae4a03581eeca1fcf6232b3b09 (diff)
select item from workspace- skipping versions page
Change-Id: Iebd3bb33703c2d47265ba133f7b74ec961ba8b2f Issue-ID: SDC-864 Signed-off-by: miriame <miriam.eini@amdocs.com>
Diffstat (limited to 'openecomp-ui/src/sdc-app/common/helpers')
-rw-r--r--openecomp-ui/src/sdc-app/common/helpers/ScreensHelper.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/openecomp-ui/src/sdc-app/common/helpers/ScreensHelper.js b/openecomp-ui/src/sdc-app/common/helpers/ScreensHelper.js
index d8fa02664f..ecee47d8b0 100644
--- a/openecomp-ui/src/sdc-app/common/helpers/ScreensHelper.js
+++ b/openecomp-ui/src/sdc-app/common/helpers/ScreensHelper.js
@@ -277,13 +277,13 @@ const ScreensHelper = {
}
},
- loadLandingScreen(dispatch, {previousScreenName, props: {licenseModelId, softwareProductId, version}}) {
- const screenType = this.getScreenType(previousScreenName);
- let screen = screenType === screenTypes.SOFTWARE_PRODUCT ?
+ loadLandingScreen(dispatch, {previousScreenName, screenType, props: {licenseModelId, softwareProductId, version}}) {
+ let selectedScreenType = screenType ? screenType : this.getScreenType(previousScreenName);
+ let screen = selectedScreenType === screenTypes.SOFTWARE_PRODUCT ?
enums.SCREEN.SOFTWARE_PRODUCT_LANDING_PAGE :
enums.SCREEN.LICENSE_MODEL_OVERVIEW;
let props = {licenseModelId, softwareProductId, version};
- return this.loadScreen(dispatch, {screen, screenType, props});
+ return this.loadScreen(dispatch, {screen, screenType: selectedScreenType, props});
}
};