summaryrefslogtreecommitdiffstats
path: root/ecomp-portal-FE-common/client/app/views/dashboard
diff options
context:
space:
mode:
authorsa282w <sa282w@att.com>2018-07-25 13:25:43 -0400
committersa282w <sa282w@att.com>2018-07-30 11:49:36 -0400
commitaa9b320ff93511280cf51b03d38fb9254af6b530 (patch)
tree434819201ead235fad2e7fb663b0480695156db4 /ecomp-portal-FE-common/client/app/views/dashboard
parentfe3a67c11b65d7989a6ef648c3f34eee8abe7394 (diff)
JUnits for coverage
Issue-ID: PORTAL-273 JUnits for sonar coverage Change-Id: Icb88d8563164281d29877bbc2de9c8f1f780aa0c Signed-off-by: sa282w <sa282w@att.com>
Diffstat (limited to 'ecomp-portal-FE-common/client/app/views/dashboard')
-rw-r--r--ecomp-portal-FE-common/client/app/views/dashboard/dashboard.controller.js9
1 files changed, 8 insertions, 1 deletions
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)