X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=ecomp-portal-FE-common%2Fclient%2Fapp%2Fviews%2Fdashboard%2Fdashboard.controller.js;h=e1a093265d1f5f2d72119191659a1bb49dae6c26;hb=aa9b320ff93511280cf51b03d38fb9254af6b530;hp=069bc454f1f5f5a488cc9bbfbc546355501ae873;hpb=fe3a67c11b65d7989a6ef648c3f34eee8abe7394;p=portal.git diff --git a/ecomp-portal-FE-common/client/app/views/dashboard/dashboard.controller.js b/ecomp-portal-FE-common/client/app/views/dashboard/dashboard.controller.js index 069bc454..e1a09326 100644 --- a/ecomp-portal-FE-common/client/app/views/dashboard/dashboard.controller.js +++ b/ecomp-portal-FE-common/client/app/views/dashboard/dashboard.controller.js @@ -146,7 +146,14 @@ function _classCallCheck(instance, Constructor) { $scope.appsViewData = []; $scope.appsView = []; - $scope.sort_type = userAppSortTypePref; + if(userAppSortTypePref == ""){ + $scope.selectedSortType = $scope.sort_options[0]; + } else { + angular.forEach($scope.sort_options, function(sort_type, key){ + if(sort_type.value == userAppSortTypePref) + $scope.selectedSortType = sort_type; + }); + } applicationsService .getAppsOrderBySortPref(userAppSortTypePref)