Skip to content

Commit

Permalink
Dashboard Ranking Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cutecryptid committed Nov 10, 2017
1 parent f94e4d3 commit 71abb72
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions public/app/controllers/mainCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,15 +235,16 @@ angular.module('mainCtrl', [])
}

vm.rankingDialog = function($event){
sortedRobots = vm.rankingRobots;
refreshRobotList(vm.categoryId);
vm.ranking = getRanking(vm.robots, vm.categoryRankingSize);
var dialog = ngDialog.open({
template: 'app/views/modals/ranking.html',
scope: $scope,
controller: 'mainController',
controllerAs: 'main',
width: 560,
data: {
robots: sortedRobots
robots: vm.ranking
}
});
}
Expand Down

0 comments on commit 71abb72

Please sign in to comment.