From 71abb72e4f67f231e3838dbf460440d8e7efc6a3 Mon Sep 17 00:00:00 2001 From: Trigork Date: Fri, 10 Nov 2017 02:34:03 +0100 Subject: [PATCH] Dashboard Ranking Fix --- public/app/controllers/mainCtrl.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/public/app/controllers/mainCtrl.js b/public/app/controllers/mainCtrl.js index 4f2dec3..26abe2d 100644 --- a/public/app/controllers/mainCtrl.js +++ b/public/app/controllers/mainCtrl.js @@ -235,7 +235,8 @@ 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, @@ -243,7 +244,7 @@ angular.module('mainCtrl', []) controllerAs: 'main', width: 560, data: { - robots: sortedRobots + robots: vm.ranking } }); }