aboutsummaryrefslogtreecommitdiffstats
path: root/epsdk-app-onap/src/main/webapp/WEB-INF/fusion/jsp/ebz
diff options
context:
space:
mode:
authorRina Roi <rina.roi@intl.att.com>2019-07-29 10:00:16 +0300
committerRina Roi <rina.roi@intl.att.com>2019-07-30 14:06:48 +0300
commit1a53b6bf5ab268e7a92d90ee9fe812d8835e7490 (patch)
tree4134d96d272c0b4e283826491b906fc2ed2b8f97 /epsdk-app-onap/src/main/webapp/WEB-INF/fusion/jsp/ebz
parentae0dc04b6ed04d48d62b30c1ecc499fed75c8bec (diff)
Add app version to welcome page
Issue-ID: VID-539 Signed-off-by: Rina Roi <rina.roi@intl.att.com> Change-Id: I595869e5d6b0af279eb61cc18dac329f7fac094a
Diffstat (limited to 'epsdk-app-onap/src/main/webapp/WEB-INF/fusion/jsp/ebz')
-rw-r--r--epsdk-app-onap/src/main/webapp/WEB-INF/fusion/jsp/ebz/ebz_header.jsp36
1 files changed, 34 insertions, 2 deletions
diff --git a/epsdk-app-onap/src/main/webapp/WEB-INF/fusion/jsp/ebz/ebz_header.jsp b/epsdk-app-onap/src/main/webapp/WEB-INF/fusion/jsp/ebz/ebz_header.jsp
index 44fe53a88..4808ccd43 100644
--- a/epsdk-app-onap/src/main/webapp/WEB-INF/fusion/jsp/ebz/ebz_header.jsp
+++ b/epsdk-app-onap/src/main/webapp/WEB-INF/fusion/jsp/ebz/ebz_header.jsp
@@ -246,6 +246,7 @@
<a ng-click="toggleDrawer();isOpen = !isOpen" href="javascript:void(0);" class="arrow-icon-left" >
<span class="icon-hamburger"></span></a>
<span ng-init="isOpen = true" ng-show="isOpen" style="font-size:16px; position:relative; top:-8px; left:-15px;">&nbsp&nbsp&nbsp {{app_name}}</span>
+ <span data-tests-id='app-version' ng-show="isOpen" style="font-size:13px; position:relative; top:15px; left:-45px; color:#666666;">{{app_version}}</span>
</span>
<div att-drawer drawer-slide="left" drawer-custom-top="{{drawer_custom_top}}px" drawer-size="200px" drawer-open="drawerOpen" drawer-custom-height="100%" >
<div ng-style="adjustHLeftMenu('leftMenu')">
@@ -313,6 +314,7 @@
fullName:'',
email:''
}
+ $scope.app_version="";
/*Put user info into fields*/
$scope.inputUserInfo = function(userInfo){
if (typeof(userInfo) != "undefined" && userInfo!=null && userInfo!=''){
@@ -388,7 +390,21 @@
}
];
return megaMenuDataObjectTemp;
- };
+ };
+
+ var getAppVersion = function() {
+ return $http.get('version')
+ .then(function(response) {
+ if (typeof response.data === 'object') {
+ return response.data;
+ } else {
+ return $q.reject(response.data);
+ }
+ }, function(response) {
+ // something went wrong
+ return $q.reject(response.data);
+ });
+ }
/*Left Menu*/
@@ -425,7 +441,23 @@
console.log('getAppName failed', error);
});
-
+ getAppVersion().then(function(response){
+ var j = response;
+ try{
+ if(j){
+ $scope.app_version = j.displayVersion;
+
+ }else{
+ throw "Version response is not in expected format.";
+ }
+ }catch (e) {
+ console.log("Error happened while trying to get app version: "+e);
+ return;
+ }
+ },function(error){
+ console.log('getAppVersion failed', error);
+ });
+
$scope.getTopMenuStaticInfo();
$scope.getMenu=function() {